diff --git a/mysql/group.sql b/mysql/group.sql index 571ab0c2758762240e9b973da205494b8f1d89ad..5555cb05dde0976983b9a5ab4cd4ed6e0bbcf616 100644 --- a/mysql/group.sql +++ b/mysql/group.sql @@ -3,4 +3,4 @@ CREATE INDEX expire_at USING BTREE ON hilo.group_medal (expire_at); ALTER TABLE hilo.res_medal ADD attr_type TINYINT UNSIGNED DEFAULT 1 NOT NULL COMMENT '勋章类型1.个人2.房间'; update res_medal set attr_type = 2 where name like '%房间%'; - +update res_medal set attr_type = 2 where id in (select res_medal_id from group_medal); \ No newline at end of file