diff options
author | Masaya Tojo <masaya@tojo.tokyo> | 2023-03-04 18:40:37 +0900 |
---|---|---|
committer | Masaya Tojo <masaya@tojo.tokyo> | 2023-03-04 18:40:37 +0900 |
commit | 88b7a0784e0c9e66dad26e0d85ee06ce9f7c59b9 (patch) | |
tree | ffd9ae8bb6bb092958712ab0a20d36baa6747c0f /verify | |
parent | 33540101422d874e798c1852391eed19b16c600e (diff) |
Make transaction type integer.
Diffstat (limited to 'verify')
-rw-r--r-- | verify/transaction_type_to_integer.sql | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/verify/transaction_type_to_integer.sql b/verify/transaction_type_to_integer.sql new file mode 100644 index 0000000..808d5df --- /dev/null +++ b/verify/transaction_type_to_integer.sql @@ -0,0 +1,16 @@ +-- Verify kakeibo:transaction_type_to_integer on pg + +BEGIN; + +DO $$ + BEGIN + ASSERT(SELECT 1 + FROM information_schema.columns + WHERE table_name = 'transactions' + AND table_schema = 'kakeibo' + AND column_name = 'type' + AND data_type = 'integer'); + END +$$; + +ROLLBACK; |