SPB Git

Repository Public

005_nextgen.down.sql 914 B 14 lines sql

1-- Reverses 005_nextgen.sql. OpenRouter catalogue rows are removed (messages keep their model id as plain text).2DELETE FROM models WHERE provider = 'openrouter';3ALTER TABLE models DROP CONSTRAINT IF EXISTS models_provider_check;4ALTER TABLE models ADD CONSTRAINT models_provider_check CHECK (provider IN ('openai','anthropic','xai','local'));5DROP INDEX IF EXISTS models_route_idx;6ALTER TABLE models DROP COLUMN IF EXISTS route, DROP COLUMN IF EXISTS creator, DROP COLUMN IF EXISTS description, DROP COLUMN IF EXISTS catalog, DROP COLUMN IF EXISTS catalog_synced_at;7DROP TABLE IF EXISTS provider_keys;8DROP TABLE IF EXISTS sync_events;9DROP TABLE IF EXISTS message_lenses;10ALTER TABLE messages DROP COLUMN IF EXISTS followups;11ALTER TABLE conversations DROP COLUMN IF EXISTS branch_label;12DELETE FROM settings WHERE key IN ('assistant', 'client');13DELETE FROM schema_migrations WHERE name = '005_nextgen.sql';14
Files main
Menu

Theme