Skip to content

Commit

Permalink
fix: Error 1072: Key column 'integers' doesn't exist in table
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo82148 committed May 18, 2022
1 parent d594677 commit 58dae3a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions diff/diff_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,8 @@ blob_n blob,
blob_nn blob,
int_sd int default 0,
int_ud int unsigned default 0,
CONSTRAINT bar_fk FOREIGN KEY (integers) REFERENCES bar (id),
INDEX foo_idx (ints)
CONSTRAINT bar_fk FOREIGN KEY (integer_s) REFERENCES bar (id),
INDEX foo_idx (int_s)
)`},
// show create table foo
After: []string{`
Expand Down Expand Up @@ -352,9 +352,9 @@ int_sd int(11) DEFAULT '0',
int_ud int(10) unsigned DEFAULT '0',
PRIMARY KEY (id),
UNIQUE KEY bigint_s (bigint_s),
KEY bar_fk (integers),
KEY foo_idx (ints),
CONSTRAINT bar_fk FOREIGN KEY (integers) REFERENCES bar (id)
KEY bar_fk (integer_s),
KEY foo_idx (int_s),
CONSTRAINT bar_fk FOREIGN KEY (integer_s) REFERENCES bar (id)
)`},
Expect: []string{},
},
Expand Down

0 comments on commit 58dae3a

Please sign in to comment.