From 69ac90518f003895b8ffb6618b84b91ff4256308 Mon Sep 17 00:00:00 2001 From: Masaya Tojo Date: Sat, 4 Mar 2023 20:21:24 +0900 Subject: Drop transaction_type. --- verify/transaction_type.sql | 5 ++++- verify/transaction_type@v1.0.0-dev1.sql | 11 +++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 verify/transaction_type@v1.0.0-dev1.sql (limited to 'verify') diff --git a/verify/transaction_type.sql b/verify/transaction_type.sql index 64de361..bce032f 100644 --- a/verify/transaction_type.sql +++ b/verify/transaction_type.sql @@ -3,8 +3,11 @@ BEGIN; DO $$ + DECLARE + type_count INTEGER; BEGIN - ASSERT (select 1 from pg_type where typname = 'transaction_type'); + SELECT COUNT(*) INTO type_count FROM pg_type where typname = 'transaction_type'; + ASSERT type_count = 0; END $$; diff --git a/verify/transaction_type@v1.0.0-dev1.sql b/verify/transaction_type@v1.0.0-dev1.sql new file mode 100644 index 0000000..64de361 --- /dev/null +++ b/verify/transaction_type@v1.0.0-dev1.sql @@ -0,0 +1,11 @@ +-- Verify kakeibo:transaction_type on pg + +BEGIN; + +DO $$ + BEGIN + ASSERT (select 1 from pg_type where typname = 'transaction_type'); + END +$$; + +ROLLBACK; -- cgit v1.2.3