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 '',