Merge branch 'devel' of https://storage.hided.net/gogs/hide_d/tm_sam into devel
This commit is contained in:
@@ -31,8 +31,6 @@ if(isTable($connect, "nation", $dbname)) @MYDB_query("drop table nation", $conne
|
||||
if(isTable($connect, "city", $dbname)) @MYDB_query("drop table city", $connect) or Error("drop ".MYDB_error($connect),"");
|
||||
// 부대 테이블 삭제
|
||||
if(isTable($connect, "troop", $dbname)) @MYDB_query("drop table troop", $connect) or Error("drop ".MYDB_error($connect),"");
|
||||
// 토큰 테이블 삭제
|
||||
if(isTable($connect, "token",$dbname)) @MYDB_query("drop table token", $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
// 외교 테이블 삭제
|
||||
if(isTable($connect, "diplomacy", $dbname)) @MYDB_query("drop table diplomacy", $connect) or Error("drop ".MYDB_error($connect),"");
|
||||
// 토너먼트 테이블 삭제
|
||||
@@ -56,8 +54,6 @@ if(!isTable($connect, "nation", $dbname)) @MYDB_query($nation_schema, $connect)
|
||||
if(!isTable($connect, "city", $dbname)) @MYDB_query($city_schema, $connect) or Error("create city ".MYDB_error($connect),"");
|
||||
// 부대 테이블 생성
|
||||
if(!isTable($connect, "troop", $dbname)) @MYDB_query($troop_schema, $connect) or Error("create troop ".MYDB_error($connect),"");
|
||||
// 토큰 테이블 생성
|
||||
if(!isTable($connect, "token",$dbname)) @MYDB_query($token_schema, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
// 외교 테이블 생성
|
||||
if(!isTable($connect, "diplomacy", $dbname)) @MYDB_query($diplomacy_schema, $connect) or Error("create diplomacy ".MYDB_error($connect),"");
|
||||
// 전당 테이블 생성
|
||||
|
||||
@@ -51,8 +51,6 @@ if(isTable($connect, "nation",$dbname)) @MYDB_query("drop table nation", $connec
|
||||
if(isTable($connect, "city",$dbname)) @MYDB_query("drop table city", $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
// 부대 테이블 삭제
|
||||
if(isTable($connect, "troop",$dbname)) @MYDB_query("drop table troop", $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
// 토큰 테이블 삭제
|
||||
if(isTable($connect, "token",$dbname)) @MYDB_query("drop table token", $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
// 외교 테이블 삭제
|
||||
if(isTable($connect, "diplomacy",$dbname)) @MYDB_query("drop table diplomacy", $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
// 토너먼트 테이블 삭제
|
||||
@@ -74,8 +72,6 @@ if(!isTable($connect, "nation",$dbname)) @MYDB_query($nation_schema, $connect) o
|
||||
if(!isTable($connect, "city",$dbname)) @MYDB_query($city_schema, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
// 부대 테이블 생성
|
||||
if(!isTable($connect, "troop",$dbname)) @MYDB_query($troop_schema, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
// 토큰 테이블 생성
|
||||
if(!isTable($connect, "token",$dbname)) @MYDB_query($token_schema, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
// 외교 테이블 생성
|
||||
if(!isTable($connect, "diplomacy",$dbname)) @MYDB_query($diplomacy_schema, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
// 전당 테이블 생성
|
||||
|
||||
@@ -298,25 +298,6 @@ $troop_schema = "
|
||||
|
||||
";
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// 토큰 테이블
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
$token_schema = "
|
||||
|
||||
create table token (
|
||||
token int(6) not null auto_increment,
|
||||
id char(16) not null,
|
||||
leader int(3) not null,
|
||||
power int(3) not null,
|
||||
intel int(3) not null,
|
||||
|
||||
PRIMARY KEY (token),
|
||||
KEY(id)
|
||||
) ENGINE=INNODB ROW_FORMAT=DYNAMIC DEFAULT CHARSET=UTF8
|
||||
|
||||
";
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// 락 테이블
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user