Feat[BE]: add migration scripts to manage document columns in expenses table for Document service integration

This commit is contained in:
aguhh18
2025-12-26 11:21:23 +07:00
parent a9037991ef
commit 54487b0fcf
2 changed files with 6 additions and 0 deletions
@@ -0,0 +1,3 @@
-- Rollback: restore document columns to expenses table
ALTER TABLE expenses ADD COLUMN IF NOT EXISTS document_path JSON;
ALTER TABLE expenses ADD COLUMN IF NOT EXISTS realization_document_path JSON;
@@ -0,0 +1,3 @@
-- Delete document columns from expenses table since we now use Document service with polymorphic relations
ALTER TABLE expenses DROP COLUMN IF EXISTS document_path;
ALTER TABLE expenses DROP COLUMN IF EXISTS realization_document_path;