Skip to content

Commit

Permalink
ignore foreign key checks on cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Shlomi Noach <[email protected]>
  • Loading branch information
shlomi-noach committed Mar 10, 2024
1 parent 6399ff2 commit 3c3c4a0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2411,7 +2411,7 @@ func testForeignKeys(t *testing.T) {
continue
}
statement := fmt.Sprintf("DROP TABLE IF EXISTS %s", artifact)
_, err := clusterInstance.VtctldClientProcess.ApplySchemaWithOutput(keyspaceName, statement, cluster.ApplySchemaParams{DDLStrategy: "direct"})
_, err := clusterInstance.VtctldClientProcess.ApplySchemaWithOutput(keyspaceName, statement, cluster.ApplySchemaParams{DDLStrategy: "direct --unsafe-allow-foreign-keys"})
if err == nil {
droppedTables[artifact] = true
}
Expand Down

0 comments on commit 3c3c4a0

Please sign in to comment.