diplomacy_ticket 테이블 추가

This commit is contained in:
2018-11-22 02:26:07 +09:00
parent 712601041d
commit cfb8b03446
2 changed files with 14 additions and 1 deletions
+2 -1
View File
@@ -20,7 +20,8 @@ DROP TABLE IF EXISTS message;
#
#
DROP TABLE IF EXISTS diplomacy;
DROP TABLE IF EXISTS `diplomacy`;
DROP TABLE IF EXISTS `diplomacy_ticket`;
#
DROP TABLE IF EXISTS tournament;
+12
View File
@@ -548,6 +548,18 @@ create table diplomacy (
UNIQUE INDEX `me` (`me`, `you`)
) ENGINE=INNODB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `diplomacy_ticket` (
`id` INT(11) NOT NULL,
`src_nation_id` INT(11) NOT NULL,
`dest_nation_id` INT(11) NOT NULL,
`type` VARCHAR(16) NOT NULL,
`until` INT(11) NOT NULL,
`is_request` BIT(1) NULL DEFAULT NULL,
`option` TEXT NULL DEFAULT NULL COMMENT 'json',
PRIMARY KEY (`id`),
INDEX `ticket` (`src_nation_id`, `dest_nation_id`, `type`, `until`)
) ENGINE=INNODB DEFAULT CHARSET=utf8mb4;
###########################################################################
##
###########################################################################