mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-02 02:43:44 +00:00
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>
24 lines
861 B
SQL
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);
|