From 0ce36e93bd794565cd221d2dfb6a515c6d484e15 Mon Sep 17 00:00:00 2001 From: hide_d Date: Wed, 25 Apr 2018 21:31:39 +0900 Subject: [PATCH] =?UTF-8?q?=EC=98=88=EC=95=BD=20=EC=98=A4=ED=94=88=20?= =?UTF-8?q?=ED=85=8C=EC=9D=B4=EB=B8=94=EC=9D=80=20=EB=A6=AC=EC=85=8B?= =?UTF-8?q?=EC=97=90=EB=8F=84=20=EC=9C=A0=EC=A7=80=ED=95=98=EB=8F=84?= =?UTF-8?q?=EB=A1=9D=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/j_autoreset.php | 4 ---- hwe/j_install_db.php | 2 ++ hwe/sql/reset.sql | 4 +++- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hwe/j_autoreset.php b/hwe/j_autoreset.php index a1711c3c..36e6360f 100644 --- a/hwe/j_autoreset.php +++ b/hwe/j_autoreset.php @@ -31,10 +31,6 @@ $result = ResetHelper::buildScenario( $options['tournament_trig'] ); -if($result['result']){ - $db->delete('reserved_open', 'id=%i', $reserved['id']); -} - $result['affected']=1; $prefix = DB::prefix(); diff --git a/hwe/j_install_db.php b/hwe/j_install_db.php index e104c449..1aedad7f 100644 --- a/hwe/j_install_db.php +++ b/hwe/j_install_db.php @@ -93,6 +93,8 @@ if($result !== true){ ]); } +ResetHelper::clearDB(); + AppConf::getList()[$prefix]->closeServer(); Json::die([ diff --git a/hwe/sql/reset.sql b/hwe/sql/reset.sql index 07162e82..ef31cd89 100644 --- a/hwe/sql/reset.sql +++ b/hwe/sql/reset.sql @@ -44,4 +44,6 @@ DROP TABLE IF EXISTS event; DROP TABLE IF EXISTS world_history; # 전체 이벤트 테이블 삭제(연감 대체?) -DROP TABLE IF EXISTS general_public_record; \ No newline at end of file +DROP TABLE IF EXISTS general_public_record; + +DROP TABLE IF EXISTS reserved_open; \ No newline at end of file