Files
DarkflameServer/migrations/dlu/mysql/35_scheduled_tasks.sql
Aaron Kimbrell e213a7aeff feat: web dashboard and playground work
The NexusDashboard-parity dashboard (dDashboardServer) and everything built on it on the experimental branch:
accounts, characters, properties and moderation tools, permissions shared with in-game slash commands, economy
reports, World 3D and property 3D views with client scenery, scheduled events (features, vanity changes, live
events, announcements, restarts), vanity files and events, the CDClient browser, the message inspector with saved
captures, chat filter tools, community challenges, live ops, the AI moderator helper, and the server-side changes
they need.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 22:30:43 -05:00

26 lines
1.0 KiB
SQL

/* Periodic dashboard tasks. scheduled_tasks only has rows for tasks whose schedule or switch was changed on the
dashboard, or that have run on a schedule (last_scheduled_at, used to catch up after downtime).
scheduled_task_runs keeps finished runs with their log, pruned after log_task_days. */
CREATE TABLE IF NOT EXISTS scheduled_tasks (
name VARCHAR(64) NOT NULL PRIMARY KEY,
schedule VARCHAR(128) NULL,
enabled TINYINT NOT NULL DEFAULT 1,
last_scheduled_at BIGINT NOT NULL DEFAULT 0,
updated_at BIGINT NOT NULL DEFAULT 0,
updated_by VARCHAR(64) NOT NULL DEFAULT ''
);
CREATE TABLE IF NOT EXISTS scheduled_task_runs (
id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
task VARCHAR(64) NOT NULL,
task_trigger VARCHAR(16) NOT NULL,
actor VARCHAR(64) NOT NULL DEFAULT '',
started_at BIGINT NOT NULL,
finished_at BIGINT NOT NULL,
status TINYINT NOT NULL,
summary TEXT NULL,
log MEDIUMTEXT NULL,
INDEX scheduled_task_runs_task (task, id),
INDEX scheduled_task_runs_finished (finished_at)
);