feat: Event Type에 United 추가, Enums 추가

This commit is contained in:
2023-03-12 17:02:30 +09:00
parent afb4126a52
commit 401b4f41b2
2 changed files with 13 additions and 1 deletions
+12
View File
@@ -0,0 +1,12 @@
<?php
namespace sammo\Enums;
enum EventTarget: string{
//YearMonth 변경 전에 처리해야할 Month 이벤트
case PreMonth = 'PRE_MONTH';
case Month = 'MONTH';
//PostMonth는 없음
case OccupyCity = 'OCCUPY_CITY';
case DestriyNation = 'DESTROY_NATION';
case United = 'UNITED';
}
+1 -1
View File
@@ -484,7 +484,7 @@ CREATE TABLE IF NOT EXISTS `ng_history` (
##############################
CREATE TABLE `event` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`target` ENUM('MONTH', 'OCCUPY_CITY', 'DESTROY_NATION','PRE_MONTH') NOT NULL DEFAULT 'MONTH',
`target` ENUM('MONTH', 'OCCUPY_CITY', 'DESTROY_NATION','PRE_MONTH', 'UNITED') NOT NULL DEFAULT 'MONTH',
`priority` INT(11) NOT NULL DEFAULT '1000',
`condition` MEDIUMTEXT NOT NULL COLLATE 'utf8mb4_bin',
`action` MEDIUMTEXT NOT NULL COLLATE 'utf8mb4_bin',