From 28f9538a92cb5e0c72c4d75dc96df462d6febba6 Mon Sep 17 00:00:00 2001 From: MiniDay <372403923@qq.com> Date: Thu, 3 Nov 2022 23:19:17 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=E5=BB=BA=E8=A1=A8=E8=AF=AD=E5=8F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/cn/hamster3/mc/plugin/ball/common/api/BallAPI.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hamster-ball-common/src/main/java/cn/hamster3/mc/plugin/ball/common/api/BallAPI.java b/hamster-ball-common/src/main/java/cn/hamster3/mc/plugin/ball/common/api/BallAPI.java index ec89487..5cd9587 100644 --- a/hamster-ball-common/src/main/java/cn/hamster3/mc/plugin/ball/common/api/BallAPI.java +++ b/hamster-ball-common/src/main/java/cn/hamster3/mc/plugin/ball/common/api/BallAPI.java @@ -171,7 +171,8 @@ public abstract class BallAPI { ") CHARSET utf8mb4;"); statement.execute("CREATE TABLE IF NOT EXISTS " + BallCommonConstants.SQL.CACHED_MESSAGE_TABLE + "(" + "`uuid` CHAR(36) NOT NULL," + - "`message` MEDIUMTEXT NOT NULL" + + "`message` TEXT NOT NULL," + + "CONSTRAINT `fk_uuid` FOREIGN KEY (`uuid`) REFERENCES " + BallCommonConstants.SQL.PLAYER_INFO_TABLE + "(`uuid`) ON DELETE CASCADE ON UPDATE CASCADE" + ") CHARSET utf8mb4;"); statement.close(); }