fix config
This commit is contained in:
@@ -45,10 +45,9 @@ CREATE TABLE IF NOT EXISTS scripts (
|
||||
created_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ','now'))
|
||||
);
|
||||
CREATE INDEX IF NOT EXISTS idx_scripts_scope ON scripts(scope_type, scope_value);
|
||||
CREATE INDEX IF NOT EXISTS idx_scripts_kind ON scripts(kind);
|
||||
-- At most one baseline per (scope_type, scope_value). Partial unique index.
|
||||
CREATE UNIQUE INDEX IF NOT EXISTS idx_scripts_one_baseline_per_scope
|
||||
ON scripts(scope_type, scope_value) WHERE kind = 'baseline';
|
||||
-- kind-referencing indexes are created in db/index.ts AFTER migrateTable adds
|
||||
-- the column to legacy DBs. Putting them here would fail with "no such column:
|
||||
-- kind" on an existing pre-kind DB, breaking boot.
|
||||
|
||||
CREATE TABLE IF NOT EXISTS script_versions (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
|
||||
Reference in New Issue
Block a user