mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-25 07:00:48 +09:00
889b6dbaa4
0001_init.up.sql still used old names (llm_providers, llm_provider_id) and included dropped tts_providers/tts_models tables. sqlc could not parse the PL/pgSQL EXECUTE in migration 0061, so generated code retained stale columns (input_modalities, supports_reasoning) causing runtime "column does not exist" errors when adding models. - Update 0001_init.up.sql to current schema (providers, provider_id, no tts tables, add provider_oauth_tokens) - Use ALTER TABLE IF EXISTS in 0010/0041/0042 for backward compat - Regenerate sqlc
6 lines
204 B
SQL
6 lines
204 B
SQL
-- 0042_provider_enable
|
|
-- Add enable column to llm_providers for built-in provider registry support.
|
|
|
|
ALTER TABLE IF EXISTS llm_providers
|
|
ADD COLUMN IF NOT EXISTS enable BOOLEAN NOT NULL DEFAULT true;
|