feat: add prelaunch site controls and refresh branding
This commit is contained in:
@@ -1123,3 +1123,21 @@ CREATE TABLE IF NOT EXISTS external_service_alert_deliveries (
|
||||
);
|
||||
CREATE INDEX IF NOT EXISTS external_service_alert_pending_idx
|
||||
ON external_service_alert_deliveries(delivered_at,created_at);
|
||||
CREATE TABLE IF NOT EXISTS site_launch_settings (
|
||||
id TEXT PRIMARY KEY CHECK(id='primary'),
|
||||
coming_soon_enabled INTEGER NOT NULL DEFAULT 1 CHECK(coming_soon_enabled IN (0,1)),
|
||||
account_creation_enabled INTEGER NOT NULL DEFAULT 1 CHECK(account_creation_enabled IN (0,1)),
|
||||
news_enabled INTEGER NOT NULL DEFAULT 1 CHECK(news_enabled IN (0,1)),
|
||||
database_enabled INTEGER NOT NULL DEFAULT 1 CHECK(database_enabled IN (0,1)),
|
||||
builds_enabled INTEGER NOT NULL DEFAULT 1 CHECK(builds_enabled IN (0,1)),
|
||||
guides_enabled INTEGER NOT NULL DEFAULT 1 CHECK(guides_enabled IN (0,1)),
|
||||
builder_enabled INTEGER NOT NULL DEFAULT 1 CHECK(builder_enabled IN (0,1)),
|
||||
updated_at TEXT NOT NULL,
|
||||
updated_by TEXT REFERENCES users(id)
|
||||
);
|
||||
INSERT OR IGNORE INTO site_launch_settings(
|
||||
id,coming_soon_enabled,account_creation_enabled,news_enabled,database_enabled,
|
||||
builds_enabled,guides_enabled,builder_enabled,updated_at
|
||||
) VALUES('primary',1,1,1,1,1,1,1,'2026-07-27T00:00:00.000Z');
|
||||
INSERT OR IGNORE INTO permissions(id,name,description)
|
||||
VALUES('permission-site-settings-manage','site.settings.manage','Manage launch mode, account creation, and public section availability');
|
||||
|
||||
Reference in New Issue
Block a user