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.
33 lines
1.2 KiB
SQL
33 lines
1.2 KiB
SQL
DROP TABLE IF EXISTS bot_history_message_assets;
|
|
DROP TABLE IF EXISTS media_assets;
|
|
DROP TABLE IF EXISTS bot_storage_bindings;
|
|
DROP TABLE IF EXISTS storage_providers;
|
|
DROP TABLE IF EXISTS subagents;
|
|
DROP TABLE IF EXISTS schedule;
|
|
DROP TABLE IF EXISTS lifecycle_events;
|
|
DROP TABLE IF EXISTS container_versions;
|
|
DROP TABLE IF EXISTS snapshots;
|
|
DROP TABLE IF EXISTS containers;
|
|
DROP TABLE IF EXISTS bot_history_messages;
|
|
DROP TABLE IF EXISTS bot_channel_routes;
|
|
DROP TABLE IF EXISTS channel_identity_bind_codes;
|
|
DROP TABLE IF EXISTS bot_preauth_keys;
|
|
DROP TABLE IF EXISTS bot_acl_rules;
|
|
DROP TABLE IF EXISTS bot_channel_configs;
|
|
DROP TABLE IF EXISTS mcp_connections;
|
|
DROP TABLE IF EXISTS bot_members;
|
|
DROP TABLE IF EXISTS email_outbox;
|
|
DROP TABLE IF EXISTS bot_email_bindings;
|
|
DROP TABLE IF EXISTS email_oauth_tokens;
|
|
DROP TABLE IF EXISTS email_providers;
|
|
DROP TABLE IF EXISTS bots;
|
|
DROP TABLE IF EXISTS memory_providers;
|
|
DROP TABLE IF EXISTS model_variants;
|
|
DROP TABLE IF EXISTS models;
|
|
DROP TABLE IF EXISTS search_providers;
|
|
DROP TABLE IF EXISTS llm_providers;
|
|
DROP TABLE IF EXISTS user_channel_bindings;
|
|
DROP TABLE IF EXISTS channel_identities;
|
|
DROP TABLE IF EXISTS users;
|
|
DROP TYPE IF EXISTS user_role;
|