mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-27 07:16:19 +09:00
ea4dac265b
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.
7 lines
267 B
SQL
7 lines
267 B
SQL
-- 0030_drop_tts_model_unique
|
|
-- Drop unique constraint on (tts_provider_id, model_id) to allow multiple
|
|
-- models with the same model_id under one provider (different configs).
|
|
|
|
ALTER TABLE tts_models
|
|
DROP CONSTRAINT IF EXISTS tts_models_provider_model_id_unique;
|