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