File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -278,11 +278,11 @@ var testCases = []testCase{
278
278
[]string {"ALTER TABLE `xtest`.`xt1` DROP INDEX IF EXISTS `i1`" },
279
279
},
280
280
{
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`" },
283
283
[][]* filter.Table {{genTableName ("test" , "t1" )}},
284
284
[][]* 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`" },
286
286
},
287
287
{
288
288
"alter table `t1` drop partition if exists p2" ,
You can’t perform that action at this time.
0 commit comments