Add deployment blueprints and reviewed launch recipes
This commit is contained in:
@@ -335,6 +335,32 @@ CREATE TABLE IF NOT EXISTS server_creation_jobs (
|
||||
expected_map TEXT NOT NULL
|
||||
);
|
||||
|
||||
-- Launch recipes copy managed files, not credentials from the key/integration stores.
|
||||
-- Independent of the artifact library so history survives version deletion.
|
||||
CREATE TABLE IF NOT EXISTS server_blueprints (
|
||||
id TEXT PRIMARY KEY,
|
||||
name TEXT NOT NULL COLLATE NOCASE UNIQUE,
|
||||
description TEXT NOT NULL DEFAULT '',
|
||||
created_at TEXT NOT NULL,
|
||||
recipe TEXT NOT NULL
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS server_launch_previews (
|
||||
id TEXT PRIMARY KEY,
|
||||
expires_at TEXT NOT NULL,
|
||||
server TEXT,
|
||||
port INTEGER,
|
||||
recipe TEXT NOT NULL,
|
||||
blueprint_name TEXT,
|
||||
deployment_id TEXT REFERENCES server_deployments(id) ON DELETE CASCADE
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS server_launch_recipes (
|
||||
deployment_id TEXT PRIMARY KEY REFERENCES server_deployments(id) ON DELETE CASCADE,
|
||||
recipe TEXT NOT NULL,
|
||||
blueprint_name TEXT
|
||||
);
|
||||
|
||||
-- Persist state transitions atomically, including changes made by background workers.
|
||||
-- Polls with unchanged status/error do not produce duplicate activity entries.
|
||||
CREATE TABLE IF NOT EXISTS beta_events (
|
||||
|
||||
Reference in New Issue
Block a user