aboutsummaryrefslogtreecommitdiff
path: root/deploy/transactions.sql
blob: 3a4585aaefb2da03d5d0a0a54eb3d941a6bc2589 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
-- Deploy kakeibo:transactions to pg
-- requires: schema
-- requires: articles

BEGIN;

ALTER TABLE kakeibo.transactions
  ADD CONSTRAINT transactions_type_code_fkey
  FOREIGN KEY (type_code)
  REFERENCES kakeibo.transaction_types (code);

COMMIT;