From b3cd29ac95367dc6c64932b0986d835c93e9d747 Mon Sep 17 00:00:00 2001 From: hide_d Date: Mon, 23 Apr 2018 01:21:05 +0900 Subject: [PATCH] =?UTF-8?q?=EB=AA=85=EC=A0=84=20=ED=85=8C=EC=9D=B4?= =?UTF-8?q?=EB=B8=94=EC=97=90=20unique=20index=EA=B0=80=20=EC=95=88?= =?UTF-8?q?=EA=B1=B8=EB=A0=A4=EC=9E=88=EB=8D=98=20=EB=B2=84=EA=B7=B8=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sql/schema.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; ###########################################################################