aboutsummaryrefslogtreecommitdiff
path: root/verify/transactions_type_code_fkey.sql
blob: bb2841cbb02aa34c3d59381770450345f8b4ad94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
-- Verify kakeibo:transactions_type_code_fkey on pg

BEGIN;

DO $$
  BEGIN
    ASSERT (SELECT 1
              FROM information_schema.table_constraints
             WHERE table_schema = 'kakeibo'
               AND table_name = 'transactions'
               AND constraint_type = 'FOREIGN KEY'
               AND constraint_name = 'transactions_type_code_fkey');
  END
$$;

ROLLBACK;