howmuch/migrations/20241019112421_fk_transaction_expense.postgres.up.sql

3 lines
121 B
MySQL
Raw Normal View History

2024-10-19 11:28:02 +00:00
ALTER TABLE "transaction"
ADD FOREIGN KEY ("expense_id") REFERENCES "expense" ("id") ON DELETE CASCADE ON UPDATE CASCADE