Files
DarkflameServer/migrations/dlu/sqlite/18_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

24 lines
861 B
SQL

/* Periodic dashboard tasks and their run history. See the MySQL migration. */
CREATE TABLE IF NOT EXISTS scheduled_tasks (
name TEXT NOT NULL PRIMARY KEY,
schedule TEXT NULL,
enabled INTEGER NOT NULL DEFAULT 1,
last_scheduled_at BIGINT NOT NULL DEFAULT 0,
updated_at BIGINT NOT NULL DEFAULT 0,
updated_by TEXT NOT NULL DEFAULT ''
);
CREATE TABLE IF NOT EXISTS scheduled_task_runs (
id INTEGER PRIMARY KEY AUTOINCREMENT,
task TEXT NOT NULL,
task_trigger TEXT NOT NULL,
actor TEXT NOT NULL DEFAULT '',
started_at BIGINT NOT NULL,
finished_at BIGINT NOT NULL,
status INTEGER NOT NULL,
summary TEXT NULL,
log TEXT NULL
);
CREATE INDEX IF NOT EXISTS scheduled_task_runs_task ON scheduled_task_runs (task, id);
CREATE INDEX IF NOT EXISTS scheduled_task_runs_finished ON scheduled_task_runs (finished_at);