fix: 统一数据库表排序规则
This commit is contained in:
+4
-1
@@ -445,7 +445,10 @@ class DatabaseManager:
|
||||
mysql_type = self.TYPE_MAPPING.get(col_type, 'VARCHAR(255)')
|
||||
column_defs.append(f'`{col}` {mysql_type}')
|
||||
|
||||
sql = f"CREATE TABLE IF NOT EXISTS `{table_name}` ({', '.join(column_defs)}) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4"
|
||||
sql = (
|
||||
f"CREATE TABLE IF NOT EXISTS `{table_name}` ({', '.join(column_defs)}) "
|
||||
"ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci"
|
||||
)
|
||||
|
||||
with self.get_connection() as conn:
|
||||
with conn.cursor() as cursor:
|
||||
|
||||
Reference in New Issue
Block a user