Separate campaigns from server deployment lifecycle tracking
This commit is contained in:
@@ -255,3 +255,16 @@ CREATE TABLE IF NOT EXISTS server_telemetry (
|
||||
players INTEGER NOT NULL,
|
||||
received_at TEXT NOT NULL
|
||||
);
|
||||
-- Lifecycle history deliberately survives removal of the server registry row.
|
||||
CREATE TABLE IF NOT EXISTS server_deployments (
|
||||
id TEXT PRIMARY KEY,
|
||||
server TEXT NOT NULL,
|
||||
action TEXT NOT NULL CHECK (action IN ('create', 'destroy')),
|
||||
state TEXT NOT NULL,
|
||||
stage TEXT NOT NULL,
|
||||
started_at TEXT NOT NULL,
|
||||
finished_at TEXT,
|
||||
triggered_by TEXT NOT NULL,
|
||||
error TEXT,
|
||||
warnings TEXT NOT NULL DEFAULT '[]'
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user