From 70304b1903cc5b1accd9caea229e59901384203a Mon Sep 17 00:00:00 2001
From: Masaya Tojo <masaya@tojo.tokyo>
Date: Tue, 28 Mar 2023 01:29:08 +0900
Subject: Add `kakeibo.` prefix.

---
 deploy/kakeibo.transactions.sql | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 deploy/kakeibo.transactions.sql

(limited to 'deploy/kakeibo.transactions.sql')

diff --git a/deploy/kakeibo.transactions.sql b/deploy/kakeibo.transactions.sql
new file mode 100644
index 0000000..3a4585a
--- /dev/null
+++ b/deploy/kakeibo.transactions.sql
@@ -0,0 +1,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;
-- 
cgit v1.3

