revenge-next-plugs/worker/schema.sql
Ally Founder 0f20a12b93 next-site: custom channels, admin data-round-trip fix, visual polish
Public index.json now exposes every admin-set channel name (not just a hardcoded
"stable"), matching Next's real repository protocol - the in-app UI lists whatever
channel names a repo defines. Admin panel now reads from a new /api/admin/state
endpoint (full override + channel + site data) instead of /index.json, which only
ever carried the public-facing fields - fixes fields appearing blank on reload.
Channel editing is now a free-form name+version input instead of a single
"promote to stable" button.

Also: color accents, drifting background blobs, a few floating decorative icons
(pride flag included), and a custom cursor follower on desktop, applied site-wide
via the shared theme shell.
2026-08-15 13:44:42 -04:00

36 lines
812 B
SQL

DROP TABLE IF EXISTS plugin_overrides;
CREATE TABLE plugin_overrides (
id TEXT PRIMARY KEY,
name TEXT,
description TEXT,
tagline TEXT,
note TEXT,
category TEXT,
accent TEXT,
status TEXT,
how_it_works TEXT,
features TEXT,
commands TEXT,
limitations TEXT,
hidden INTEGER NOT NULL DEFAULT 0,
is_draft INTEGER NOT NULL DEFAULT 0,
manifest TEXT,
main_js TEXT,
updated_at TEXT NOT NULL
);
DROP TABLE IF EXISTS plugin_channels;
CREATE TABLE plugin_channels (
plugin_id TEXT NOT NULL,
channel TEXT NOT NULL,
version TEXT NOT NULL,
updated_at TEXT NOT NULL,
PRIMARY KEY (plugin_id, channel)
);
CREATE TABLE IF NOT EXISTS site_settings (
id TEXT PRIMARY KEY,
name TEXT,
description TEXT,
updated_at TEXT NOT NULL
);