fix: support utf8mb4 across MySQL and MariaDB
This commit is contained in:
1 parent
cce17c5fa4
commit
d34894c9cd
28 files changed
+224
-121
No files matched your search
+1
-1
@@ -33,7 +33,7 @@ func TestLoadEmbeddedMigrations(t *testing.T) {
|
||||
if !strings.Contains(stmt, "CREATE TABLE") || !strings.Contains(stmt, wantTables[i]) {
|
||||
t.Fatalf("statement %d: %s", i, stmt)
|
||||
}
|
||||
if !strings.HasSuffix(stmt, "COLLATE = utf8mb4_0900_ai_ci") {
|
||||
if !strings.HasSuffix(stmt, "DEFAULT CHARSET = utf8mb4") {
|
||||
t.Fatalf("statement %d: %s", i, stmt)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user