sql 일괄 동작 재 수정
This commit is contained in:
@@ -124,7 +124,7 @@ $rootDB->error_handler = 'dbSQLFail';
|
||||
$mysqli_obj = $rootDB->get(); //로그인에 실패할 경우 자동으로 dbConnFail()이 실행됨.
|
||||
|
||||
if($mysqli_obj->multi_query(file_get_contents(__dir__.'/sql/common_schema.sql'))){
|
||||
while ($mysqli_obj->next_result()) {;}
|
||||
while (@$mysqli_obj->next_result()) {;}
|
||||
}
|
||||
|
||||
$rootDB->insert('system', array(
|
||||
|
||||
+15
-3
@@ -55,17 +55,29 @@ if(120 % $turnterm != 0){
|
||||
]);
|
||||
}
|
||||
|
||||
$mysqli_obj = DB::db()->get();
|
||||
$db = DB::db();
|
||||
$mysqli_obj = $db->get();
|
||||
|
||||
|
||||
$scenarioObj = new Scenario($scenario);
|
||||
|
||||
if($mysqli_obj->multi_query(file_get_contents(__dir__.'/sql/reset.sql'))){
|
||||
while ($mysqli_obj->next_result()) {;}
|
||||
while (@$mysqli_obj->next_result()) {;}
|
||||
}
|
||||
|
||||
if($mysqli_obj->multi_query(file_get_contents(__dir__.'/sql/schema.sql'))){
|
||||
while ($mysqli_obj->next_result()) {;}
|
||||
while (@$mysqli_obj->next_result()) {;}
|
||||
}
|
||||
|
||||
$db->insert('plock', [
|
||||
'plock'=>0
|
||||
]);
|
||||
|
||||
/*
|
||||
$db->insert('game', [
|
||||
|
||||
]);
|
||||
*/
|
||||
//TODO:script
|
||||
$env = [
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ if($fullReset && class_exists('\\sammo\\DB')){
|
||||
$mysqli_obj = DB::db()->get();
|
||||
|
||||
if($mysqli_obj->multi_query(file_get_contents(__dir__.'/sql/reset.sql'))){
|
||||
while ($mysqli_obj->next_result()) {;}
|
||||
while (@$mysqli_obj->next_result()) {;}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user