howmuch/migrations/20241019112421_fk_transaction_expense.postgres.up.sql
2024-10-19 13:28:02 +02:00

3 lines
121 B
SQL

ALTER TABLE "transaction"
ADD FOREIGN KEY ("expense_id") REFERENCES "expense" ("id") ON DELETE CASCADE ON UPDATE CASCADE