Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -34,7 +34,7 @@ for line in fileinput.input(): | ... | @@ -34,7 +34,7 @@ for line in fileinput.input(): |
34 | m = re.search('CREATE TABLE "?(\w*)"?(.*)', line) | 34 | m = re.search('CREATE TABLE "?(\w*)"?(.*)', line) |
35 | if m: | 35 | if m: |
36 | name, sub = m.groups() | 36 | name, sub = m.groups() |
37 | - line = "DROP TABLE IF EXISTS %(name)s;\nCREATE TABLE IF NOT EXISTS %(name)s%(sub)s\nALTER TABLE %(name)s convert to charset utf8mb4 collate utf8mb4_bin;\n" | 37 | + line = "DROP TABLE IF EXISTS %(name)s;\nCREATE TABLE IF NOT EXISTS %(name)s%(sub)s\nALTER TABLE %(name)s convert to charset utf8 collate utf8_unicode_ci;\n" |
38 | line = line % dict(name=name, sub=sub) | 38 | line = line % dict(name=name, sub=sub) |
39 | line = line.replace('autoincrement','AUTO_INCREMENT') | 39 | line = line.replace('autoincrement','AUTO_INCREMENT') |
40 | line = line.replace('text not null primary key','varchar(200) not null primary key') | 40 | line = line.replace('text not null primary key','varchar(200) not null primary key') | ... | ... |
-
Please register or login to post a comment