From 277216114438af3fcc578027b9f3d872722cb36e Mon Sep 17 00:00:00 2001 From: hide_d Date: Mon, 25 Jun 2018 01:53:16 +0900 Subject: [PATCH] =?UTF-8?q?=EC=99=95=EC=A1=B0=20=EC=9D=BC=EB=9E=8C=20?= =?UTF-8?q?=ED=85=8C=EC=9D=B4=EB=B8=94=20=EA=B5=AC=EC=A1=B0=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + hwe/sql/schema.sql | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 61a7af99..796e3b87 100644 --- a/.gitignore +++ b/.gitignore @@ -15,6 +15,7 @@ d_log/*.txt d_log/*.zip sess_* */logs/*.txt +*/logs/*/*.txt err.txt che/.htaccess kwe/.htaccess diff --git a/hwe/sql/schema.sql b/hwe/sql/schema.sql index 2946d5e7..1bf3bffb 100644 --- a/hwe/sql/schema.sql +++ b/hwe/sql/schema.sql @@ -398,11 +398,11 @@ ENGINE=MyISAM DEFAULT CHARSET=utf8mb4; ## 왕조 테이블 ########################################################################### -CREATE TABLE if not exists `ng_games` ( +CREATE TABLE `ng_games` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `server_id` CHAR(20) NOT NULL, `date` DATETIME NOT NULL, - `united` INT(1) NOT NULL DEFAULT '0', + `winner_nation` INT(11) NULL DEFAULT NULL, `aux` TEXT NOT NULL COMMENT 'json', PRIMARY KEY (`id`), UNIQUE INDEX `server_id` (`server_id`), @@ -410,6 +410,16 @@ CREATE TABLE if not exists `ng_games` ( ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4; +CREATE TABLE `ng_old_nations` ( + `id` INT(11) NOT NULL AUTO_INCREMENT, + `server_id` CHAR(20) NOT NULL DEFAULT '0', + `nation` INT(11) NOT NULL DEFAULT '0', + `data` LONGTEXT NOT NULL DEFAULT '0' COMMENT 'json', + PRIMARY KEY (`id`), + INDEX `server_id` (`server_id`, `nation`) +) +ENGINE=MyISAM DEFAULT CHARSET=utf8mb4; + create table if not exists emperior ( no int(6) not null auto_increment, phase char(255) default '',