From 9407c05535822f715d42c6d1aac9661136d4ab1c Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 1 Apr 2026 16:28:44 +0200 Subject: [PATCH] fix: remove migration 019, table was dropped manually --- migrations/019_fix_chat_histories_fk.sql | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 migrations/019_fix_chat_histories_fk.sql diff --git a/migrations/019_fix_chat_histories_fk.sql b/migrations/019_fix_chat_histories_fk.sql deleted file mode 100644 index 7d88a54..0000000 --- a/migrations/019_fix_chat_histories_fk.sql +++ /dev/null @@ -1,11 +0,0 @@ --- Migration: 019_fix_chat_histories_fk --- Fix the project_id foreign key on chat_histories to reference projects(guid) --- instead of projects(id). This corrects the initial migration (018) which --- used the wrong column — projects.id is a bigserial, projects.guid is the UUID. - -ALTER TABLE chat_histories - DROP CONSTRAINT IF EXISTS chat_histories_project_id_fkey; - -ALTER TABLE chat_histories - ADD CONSTRAINT chat_histories_project_id_fkey - FOREIGN KEY (project_id) REFERENCES projects(guid) ON DELETE SET NULL;