-- Deploy kakeibo:transaction_type_to_integer to pg -- requires: transactions BEGIN; ALTER TABLE kakeibo.transactions ALTER COLUMN type TYPE integer USING CASE type WHEN 'outgo' THEN 0 ELSE 1 END; COMMIT;
![]() |
index : kakeibo-old.git | |
Unnamed repository; edit this file 'description' to name the repository. | Masaya Tojo |
aboutsummaryrefslogtreecommitdiff |
-- Deploy kakeibo:transaction_type_to_integer to pg -- requires: transactions BEGIN; ALTER TABLE kakeibo.transactions ALTER COLUMN type TYPE integer USING CASE type WHEN 'outgo' THEN 0 ELSE 1 END; COMMIT;