From 3315fa18f3a7eb4e705343c27e1f780315dc1ca7 Mon Sep 17 00:00:00 2001 From: Taylor Bantle Date: Fri, 22 Oct 2021 11:13:19 -0700 Subject: [PATCH] Only check for foreign key --- integration-tests/bats/import-create-tables.bats | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/integration-tests/bats/import-create-tables.bats b/integration-tests/bats/import-create-tables.bats index 6b962c0792..10fe47ad94 100755 --- a/integration-tests/bats/import-create-tables.bats +++ b/integration-tests/bats/import-create-tables.bats @@ -165,17 +165,7 @@ DELIM run dolt schema show fktest skip "cannot overwrite a table with foreign key constraints" [ "$status" -eq 0 ] - [[ "$output" =~ "fktest @ working" ]] || false - [[ "$output" =~ "CREATE TABLE \`fktest\` (" ]] || false - [[ "$output" =~ " \`pk\` int unsigned NOT NULL," ]] || false - [[ "$output" =~ " \`c1\` int unsigned NOT NULL," ]] || false - [[ "$output" =~ " \`c2\` int unsigned NOT NULL," ]] || false - [[ "$output" =~ " \`c3\` int unsigned NOT NULL," ]] || false - [[ "$output" =~ " \`c4\` int unsigned NOT NULL," ]] || false - [[ "$output" =~ " \`c5\` int unsigned NOT NULL," ]] || false - [[ "$output" =~ " PRIMARY KEY (\`pk\`)" ]] || false - [[ ! "$output" =~ "CONSTRAINT \`gpgd234u\` FOREIGN KEY (\`tpk\`) REFERENCES \`test\` (\`pk\`)" ]] || false - [[ "$output" =~ ") ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;" ]] || false + [[ ! "$output" =~ "FOREIGN KEY" ]] || false } @test "import-create-tables: try to create a table with a bad csv" {