[Scheduler] Event scheduler implementation (#1257)

* Event scheduler implementation

* Create 2021_02_17_server_scheduled_events.sql

* Tweak

* Remove unused event [skip ci]

* Cleanup [skip ci]

* PR adjustments

* Database manifest
This commit is contained in:
Chris Miles
2021-03-29 02:52:57 -05:00
committed by GitHub
parent f51bc4daaf
commit 7aa5308f9c
31 changed files with 2053 additions and 50 deletions
+1
View File
@@ -415,6 +415,7 @@
9159|2020_12_22_expedition_system.sql|SELECT * FROM db_version WHERE version >= 9159|empty|
9160|2021_02_14_npc_exp_mod.sql|SHOW COLUMNS from `npc_types` LIKE 'exp_mod'|empty|
9161|2021_02_15_npc_spell_entries_unsigned.sql|SELECT * FROM db_version WHERE version >= 9161|empty|
9162|2021_02_17_server_scheduled_events|SELECT * FROM db_version WHERE version >= 9162|empty|
# Upgrade conditions:
# This won't be needed after this system is implemented, but it is used database that are not
@@ -0,0 +1,21 @@
CREATE TABLE `server_scheduled_events`
(
`id` int(11) NOT NULL AUTO_INCREMENT,
`description` varchar(255) DEFAULT NULL,
`event_type` varchar(100) DEFAULT NULL,
`event_data` text DEFAULT NULL,
`minute_start` int(11) DEFAULT 0,
`hour_start` int(11) DEFAULT 0,
`day_start` int(11) DEFAULT 0,
`month_start` int(11) DEFAULT 0,
`year_start` int(11) DEFAULT 0,
`minute_end` int(11) DEFAULT 0,
`hour_end` int(11) DEFAULT 0,
`day_end` int(11) DEFAULT 0,
`month_end` int(11) DEFAULT 0,
`year_end` int(11) DEFAULT 0,
`cron_expression` varchar(100) DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`deleted_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;