diff --git a/hwe/sql/schema.sql b/hwe/sql/schema.sql index 0f0071e4..a0810ca1 100644 --- a/hwe/sql/schema.sql +++ b/hwe/sql/schema.sql @@ -437,7 +437,8 @@ create table if not exists hall ( color char(12) default '', picture char(32) default '', - PRIMARY KEY (no) + PRIMARY KEY (no), + UNIQUE INDEX `type` (`type`, `rank`) ) ENGINE=INNODB ROW_FORMAT=DYNAMIC DEFAULT CHARSET=utf8mb4; ###########################################################################