mirror of
https://github.com/dolthub/dolt.git
synced 2026-05-21 11:39:10 -05:00
Updating from new schema conflict reporting
This commit is contained in:
@@ -4203,10 +4203,17 @@ var ThreeWayMergeWithSchemaChangeTestScripts = []MergeScriptTest{
|
||||
},
|
||||
Assertions: []queries.ScriptTestAssertion{
|
||||
{
|
||||
Query: "call dolt_merge('right');",
|
||||
ExpectedErr: merge.ErrSchemaConflict,
|
||||
Query: "call dolt_merge('right');",
|
||||
Expected: []sql.Row{{0, 1}},
|
||||
},
|
||||
{
|
||||
Query: "select table_name, base_schema, our_schema, their_schema from dolt_schema_conflicts;",
|
||||
Expected: []sql.Row{{"t",
|
||||
"CREATE TABLE `t` (\n `pk` int NOT NULL,\n `col1` int,\n `col2` varchar(100),\n PRIMARY KEY (`pk`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_bin;",
|
||||
"CREATE TABLE `t` (\n `pk` int NOT NULL,\n `col1` int,\n `col2` varchar(100),\n PRIMARY KEY (`pk`),\n KEY `idx1` (`col2`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_bin;",
|
||||
"CREATE TABLE `t` (\n `pk` int NOT NULL,\n `col1` int,\n `col2` varchar(100),\n PRIMARY KEY (`pk`),\n KEY `idx1` (`col2`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_bin;",
|
||||
}},
|
||||
},
|
||||
// TODO: Check dolt_schema_conflicts table for the conflict metadata once that sys table exists
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user