Files
Memoh/db/migrations/0042_provider_enable.up.sql
T
Acbox ea4dac265b fix: revert canonical schema to use llm_providers for migration compatibility
The CI migrations workflow (up → down → up) failed because 0061 down
renames `providers` back to `llm_providers`, but 0001 down only dropped
`providers` — leaving `llm_providers` as a remnant. On the second
migrate up, 0010 found the stale `llm_providers` and tried to reference
`models.llm_provider_id` which no longer existed.

Revert 0001 canonical schema to use original names (llm_providers,
tts_providers, tts_models) so incremental migrations work naturally and
0061 handles the final rename. Remove EXECUTE wrappers and unnecessary
guards from migrations that now always operate on llm_providers.
2026-04-07 01:44:09 +08:00

6 lines
194 B
SQL

-- 0042_provider_enable
-- Add enable column to llm_providers for built-in provider registry support.
ALTER TABLE llm_providers
ADD COLUMN IF NOT EXISTS enable BOOLEAN NOT NULL DEFAULT true;