SPB Git

Repository Public

002_xai_provider.down.sql 502 B 9 lines sql

1-- Rollback of 002: removes the xAI registry rows, then restores the two-provider constraint.2-- Messages and usage events that mention a Grok model keep their text columns (no foreign key on models).3BEGIN;4DELETE FROM models WHERE provider = 'xai';5ALTER TABLE models DROP CONSTRAINT IF EXISTS models_provider_check;6ALTER TABLE models ADD CONSTRAINT models_provider_check CHECK (provider IN ('openai','anthropic','local'));7DELETE FROM schema_migrations WHERE name = '002_xai_provider.sql';8COMMIT;9
Files main
Menu

Theme