feat: (예약)plock을 세부 구분할 예정

This commit is contained in:
2021-12-09 00:51:10 +09:00
parent 26ea6a6c69
commit 58673fb385
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -190,6 +190,7 @@ class ResetHelper{
$db = DB::db();
$gameStor = KVStorage::getStorage($db, 'game_env');
$db->insert('plock', [
'type'=>'GAME',
'plock'=>1,
'locktime'=>TimeUtil::now(true)
]);
+3 -1
View File
@@ -238,9 +238,11 @@ CREATE TABLE `troop` (
CREATE TABLE `plock` (
`no` INT(11) NOT NULL AUTO_INCREMENT,
`type` ENUM('GAME', 'ETC', 'TOURNAMENT') NOT NULL DEFAULT 'GAME',
`plock` INT(1) NOT NULL DEFAULT '0',
`locktime` DATETIME(6) NOT NULL,
PRIMARY KEY (`no`)
PRIMARY KEY (`no`),
UNIQUE INDEX `type` (`type`)
)
DEFAULT CHARSET=utf8mb4
ENGINE=Aria