From e5d923643da447e0ef42234082faf3d3e57bfbf4 Mon Sep 17 00:00:00 2001 From: hide_d Date: Thu, 22 Feb 2018 02:09:59 +0900 Subject: [PATCH] =?UTF-8?q?general=20=ED=85=8C=EC=9D=B4=EB=B8=94=EC=97=90?= =?UTF-8?q?=EC=84=9C=20=EA=B0=A0=EB=A9=94=20=ED=8C=8C=ED=8A=B8=20=EC=A0=9C?= =?UTF-8?q?=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- twe/schema.php | 48 ++++-------------------------------------------- 1 file changed, 4 insertions(+), 44 deletions(-) diff --git a/twe/schema.php b/twe/schema.php index 2ec07c19..8f4a7edd 100644 --- a/twe/schema.php +++ b/twe/schema.php @@ -5,13 +5,12 @@ //////////////////////////////////////////////////////////////////////////// $general_schema = " - CREATE TABLE `general` ( `no` INT(11) NOT NULL AUTO_INCREMENT, `owner` INT(11) NOT NULL DEFAULT '-1', `conmsg` CHAR(255) NOT NULL DEFAULT '', `npcmsg` CHAR(255) NULL DEFAULT '', - `npcid` INT(5) NULL DEFAULT '0', + `npcid` INT(5) NULL DEFAULT NULL, `npc` INT(1) NULL DEFAULT '0', `npc_org` INT(1) NULL DEFAULT '0', `npcmatch` INT(3) NULL DEFAULT '0', @@ -158,52 +157,13 @@ CREATE TABLE `general` ( `turn23` CHAR(14) NULL DEFAULT '00000000000000', `recturn` CHAR(14) NULL DEFAULT '', `resturn` CHAR(14) NULL DEFAULT '', - `msg0` CHAR(150) NULL DEFAULT '', - `msg0_type` INT(4) NULL DEFAULT '0', - `msg0_who` INT(9) NULL DEFAULT '0', - `msg0_when` DATETIME NULL DEFAULT NULL, - `msg1` CHAR(150) NULL DEFAULT '', - `msg1_type` INT(4) NULL DEFAULT '0', - `msg1_who` INT(9) NULL DEFAULT '0', - `msg1_when` DATETIME NULL DEFAULT NULL, - `msg2` CHAR(150) NULL DEFAULT '', - `msg2_type` INT(4) NULL DEFAULT '0', - `msg2_who` INT(9) NULL DEFAULT '0', - `msg2_when` DATETIME NULL DEFAULT NULL, - `msg3` CHAR(150) NULL DEFAULT '', - `msg3_type` INT(4) NULL DEFAULT '0', - `msg3_who` INT(9) NULL DEFAULT '0', - `msg3_when` DATETIME NULL DEFAULT NULL, - `msg4` CHAR(150) NULL DEFAULT '', - `msg4_type` INT(4) NULL DEFAULT '0', - `msg4_who` INT(9) NULL DEFAULT '0', - `msg4_when` DATETIME NULL DEFAULT NULL, - `msg5` CHAR(150) NULL DEFAULT '', - `msg5_type` INT(4) NULL DEFAULT '0', - `msg5_who` INT(9) NULL DEFAULT '0', - `msg5_when` DATETIME NULL DEFAULT NULL, - `msg6` CHAR(150) NULL DEFAULT '', - `msg6_type` INT(4) NULL DEFAULT '0', - `msg6_who` INT(9) NULL DEFAULT '0', - `msg6_when` DATETIME NULL DEFAULT NULL, - `msg7` CHAR(150) NULL DEFAULT '', - `msg7_type` INT(4) NULL DEFAULT '0', - `msg7_who` INT(9) NULL DEFAULT '0', - `msg7_when` DATETIME NULL DEFAULT NULL, - `msg8` CHAR(150) NULL DEFAULT '', - `msg8_type` INT(4) NULL DEFAULT '0', - `msg8_who` INT(9) NULL DEFAULT '0', - `msg8_when` DATETIME NULL DEFAULT NULL, - `msg9` CHAR(150) NULL DEFAULT '', - `msg9_type` INT(4) NULL DEFAULT '0', - `msg9_who` INT(9) NULL DEFAULT '0', - `msg9_when` DATETIME NULL DEFAULT NULL, - `msgindex` INT(2) NULL DEFAULT '9', PRIMARY KEY (`no`), INDEX `nation` (`nation`), INDEX `city` (`city`), INDEX `turntime` (`turntime`, `no`), - INDEX `owner` (`owner`) + INDEX `no_member` (`owner`), + INDEX `npc` (`npc`), + INDEX `npcid` (`npcid`) ) COLLATE='utf8_general_ci' ENGINE=InnoDB