From 193b173b8ec0fdebec1ef4212799135f6d840a6f Mon Sep 17 00:00:00 2001 From: Ghost_chu <30802565+Ghost-chu@users.noreply.github.com> Date: Tue, 29 Aug 2023 21:50:36 +0800 Subject: [PATCH] Use utf8mb4 as default charset for table creating --- .../cc/carm/lib/easysql/api/builder/TableCreateBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/main/java/cc/carm/lib/easysql/api/builder/TableCreateBuilder.java b/api/src/main/java/cc/carm/lib/easysql/api/builder/TableCreateBuilder.java index 079b1ecb..d97f0b99 100644 --- a/api/src/main/java/cc/carm/lib/easysql/api/builder/TableCreateBuilder.java +++ b/api/src/main/java/cc/carm/lib/easysql/api/builder/TableCreateBuilder.java @@ -250,7 +250,7 @@ TableCreateBuilder addForeignKey(@NotNull String tableColumn, @Nullable String c @Nullable ForeignKeyRule updateRule, @Nullable ForeignKeyRule deleteRule); default String defaultTablesSettings() { - return "ENGINE=InnoDB DEFAULT CHARSET=utf8"; + return "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4"; } }