install_db 과정에서 리셋 버그 수정

This commit is contained in:
2018-03-29 02:38:04 +09:00
parent 622ba5945a
commit 3b8c764544
4 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ if(Session::getUserGrade(true) == 5){
<div class="form-group row">
<label for="full_reset" class="col-sm-3 col-form-label">이전 DB 초기화</label>
<div class="col-sm-9" style="display: inline-flex;">
<div class="btn-group btn-group-toggle" data-toggle="buttons">
<div id="full_reset" class="btn-group btn-group-toggle" data-toggle="buttons">
<label class="btn btn-secondary">
<input type="radio" name="full_reset" value="1">Y
</label>
+3 -1
View File
@@ -31,7 +31,9 @@ if($fullReset && class_exists('\\sammo\\DB')){
if($mysqli_obj->multi_query(file_get_contents(__dir__.'/sql/reset.sql'))){
do{
$mysqli_obj->store_result();
if(!$mysqli_obj->store_result()){
break;
}
} while($mysqli_obj->next_result());
}
}
+1 -1
View File
@@ -37,7 +37,7 @@ $(document).ready( function () {
url:'j_install_db.php',
dataType:'json',
data:{
full_reset:$('#full_reset').val(),
full_reset:$('#full_reset input:radio:checked').val(),
db_host:$('#db_host').val(),
db_port:$('#db_port').val(),
db_id:$('#db_id').val(),
+1 -1
View File
@@ -16,7 +16,7 @@ DROP TABLE IF EXISTS plock;
#
DROP TABLE IF EXISTS game;
#
#
DROP TABLE IF EXISTS message;
#