Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion supabase/migrations/131_remove_forms_projects.sql
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ ALTER TABLE coexistence.chatbots DROP COLUMN IF EXISTS project_id;
ALTER TABLE coexistence.message_templates DROP COLUMN IF EXISTS project_id;
ALTER TABLE coexistence.agents DROP COLUMN IF EXISTS project_id;
DROP TABLE IF EXISTS coexistence.projects;
-- automation_folders was renamed to projects by 094; drop a leftover too.
-- automation_folders was renamed to projects by 094 — unless the boot-time
-- ensureProjectTables() had already created `projects`, in which case 094 left
-- both tables and chatbots.folder_id still points at the old one. Drop that
-- column (unused since 094) first, or the DROP TABLE fails on its foreign key.
ALTER TABLE coexistence.chatbots DROP COLUMN IF EXISTS folder_id;
DROP TABLE IF EXISTS coexistence.automation_folders;

-- Page keys -------------------------------------------------------------------
Expand Down
Loading