fiddy/packages/db/migrations/002_amount_dollars.sql
2026-02-11 23:45:15 -08:00

7 lines
176 B
SQL

alter table spendings
rename column amount_cents to amount_dollars;
alter table spendings
alter column amount_dollars type numeric(12,2)
using (amount_dollars / 100.0);