diff --git a/mysql/3.5.0.sql b/mysql/3.5.0.sql index e2d504063841382afb0292aa27dce9279803caa3..bad37d7c73e1f490ee8c08133aa386a567356431 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',