From 5935a3fb53c27be4536780f6a4889f4c2ed2d6ed Mon Sep 17 00:00:00 2001 From: chenweijian <820961417@qq.com> Date: Mon, 20 Mar 2023 14:34:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=B6=E6=97=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mysql/3.5.0.sql | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mysql/3.5.0.sql b/mysql/3.5.0.sql index e2d5040..bad37d7 100644 --- a/mysql/3.5.0.sql +++ b/mysql/3.5.0.sql @@ -1,8 +1,7 @@ ALTER TABLE hilo.group_power ADD nameplate varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '' NOT NULL COMMENT '家族铭牌'; ALTER TABLE hilo.group_power ADD declaration varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '' NOT NULL COMMENT '家族宣言'; -ALTER TABLE hilo.group_power ADD icon varchar(200) DEFAULT '' NOT NULL COMMENT '家族头像'; -update hilo.group_power set nameplate = id; -CREATE UNIQUE INDEX nameplate_IDX USING BTREE ON hilo.group_power (nameplate); +ALTER TABLE hilo.group_power ADD icon varchar(200) DEFAULT 'https://image.whoisamy.shop/hilo/resource/family_default.png' NOT NULL COMMENT '家族头像'; +CREATE INDEX nameplate_IDX USING BTREE ON hilo.group_power (nameplate); CREATE TABLE `group_power_invite_join` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id', -- 2.22.0