Skip to content

Commit

Permalink
drop table fk check enable
Browse files Browse the repository at this point in the history
commit_hash:dc75315c19af88432f6f97b8b4eaf7fb28b53731
  • Loading branch information
sssix6ix6ix committed Nov 28, 2024
1 parent 30f7a68 commit 1ae7ed6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/providers/mysql/sink.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ func (s *sinker) prepareInputPerTables(input []abstract.ChangeItem) (map[abstrac
s.logger.Infof("Skipped dropping table '%v.%v' due cleanup policy", db, row.Table)
continue
}
ddlQ := DisableFKQuery
ddlQ := EnableFKQuery
ddlQ += fmt.Sprintf("DROP TABLE IF EXISTS `%v`.`%v`", db, row.Table)
if _, err := s.db.Exec(ddlQ); err != nil {
s.logger.Warn("Unable to exec DDL:\n"+util.Sample(ddlQ, maxSampleLen), log.Error(err))
Expand Down

0 comments on commit 1ae7ed6

Please sign in to comment.