Skip to content

Commit 262bcd6

Browse files
committed
change
1 parent e555eea commit 262bcd6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dm/pkg/parser/common_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,11 +278,11 @@ var testCases = []testCase{
278278
[]string{"ALTER TABLE `xtest`.`xt1` DROP INDEX IF EXISTS `i1`"},
279279
},
280280
{
281-
"alter table `t1` drop foreign key if exists fk_t2_id",
282-
[]string{"ALTER TABLE `test`.`t1` DROP FOREIGN KEY IF EXISTS `fk_t2_id`"},
281+
"alter table `t1` drop foreign key fk_t2_id",
282+
[]string{"ALTER TABLE `test`.`t1` DROP FOREIGN KEY `fk_t2_id`"},
283283
[][]*filter.Table{{genTableName("test", "t1")}},
284284
[][]*filter.Table{{genTableName("xtest", "xt1")}},
285-
[]string{"ALTER TABLE `xtest`.`xt1` DROP FOREIGN KEY IF EXISTS `fk_t2_id`"},
285+
[]string{"ALTER TABLE `xtest`.`xt1` DROP FOREIGN KEY `fk_t2_id`"},
286286
},
287287
{
288288
"alter table `t1` drop partition if exists p2",

0 commit comments

Comments
 (0)