Skip to content

Commit

Permalink
Adding schema diff test
Browse files Browse the repository at this point in the history
Signed-off-by: Shlomi Noach <[email protected]>
  • Loading branch information
shlomi-noach committed May 8, 2024
1 parent 1928dbe commit 684a8f9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions go/vt/schemadiff/schema_diff_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,16 @@ func TestSchemaDiff(t *testing.T) {
expectDeps: 0,
entityOrder: []string{"t1"},
},
{
name: "two identical tables, one with explicit charset, one without",
fromQueries: []string{
"create table t (id int primary key, foo varchar(64) character set utf8mb3 collate utf8mb3_bin)",
},
toQueries: []string{
"create table t (id int primary key, foo varchar(64) collate utf8mb3_bin)",
},
entityOrder: []string{},
},
}
hints := &DiffHints{RangeRotationStrategy: RangeRotationDistinctStatements}
for _, tc := range tt {
Expand Down

0 comments on commit 684a8f9

Please sign in to comment.