From 830e7f51b597cc29750ac017beda663f6b31bfbe Mon Sep 17 00:00:00 2001 From: Masaya Tojo Date: Sun, 5 Mar 2023 14:00:25 +0900 Subject: Add foreign key constraint to transactions referencing types. --- revert/transactions_type_code_fkey.sql | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 revert/transactions_type_code_fkey.sql (limited to 'revert') diff --git a/revert/transactions_type_code_fkey.sql b/revert/transactions_type_code_fkey.sql new file mode 100644 index 0000000..7637e8e --- /dev/null +++ b/revert/transactions_type_code_fkey.sql @@ -0,0 +1,8 @@ +-- Revert kakeibo:transactions_type_code_fkey from pg + +BEGIN; + +ALTER TABLE kakeibo.transactions + DROP CONSTRAINT transactions_type_code_fkey; + +COMMIT; -- cgit v1.2.3