From 4cb71d9be1c2f2fcda125383aee8d7997401d155 Mon Sep 17 00:00:00 2001 From: Parker Date: Sun, 22 Nov 2020 14:45:30 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E6=8E=92=E5=BA=8F=E8=A7=84?= =?UTF-8?q?=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../opsli/core/creater/strategy/sync/MySQLSyncBuilder.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/opsli-modulars/opsli-modulars-creater/src/main/java/org/opsli/core/creater/strategy/sync/MySQLSyncBuilder.java b/opsli-modulars/opsli-modulars-creater/src/main/java/org/opsli/core/creater/strategy/sync/MySQLSyncBuilder.java index b1159836..d6300e29 100644 --- a/opsli-modulars/opsli-modulars-creater/src/main/java/org/opsli/core/creater/strategy/sync/MySQLSyncBuilder.java +++ b/opsli-modulars/opsli-modulars-creater/src/main/java/org/opsli/core/creater/strategy/sync/MySQLSyncBuilder.java @@ -49,7 +49,8 @@ public class MySQLSyncBuilder implements SyncStrategy { private static final String ENGINE = "InnoDB"; /** 字符格式 */ private static final String CHARSET = "utf8mb4"; - + /** 默认排序规则 */ + private static final String COLLATE = "utf8mb4_general_ci"; /** 排除表 */ private static final List EXCLUDE_TABLES; @@ -180,6 +181,7 @@ public class MySQLSyncBuilder implements SyncStrategy { str.append(" ENGINE=").append(ENGINE); str.append(" DEFAULT"); str.append(" CHARSET=").append(CHARSET); + str.append(" COLLATE=").append(COLLATE); str.append(" COMMENT='").append(SQLFilterKit.replaceSQL(model.getComments())) .append("'"); str.append(";");