fedimovies/migrations/V0033__invoice__add_amount.sql

2 lines
139 B
SQL

ALTER TABLE invoice ADD COLUMN amount BIGINT NOT NULL DEFAULT 0 CHECK (amount >= 0);
ALTER TABLE invoice ALTER COLUMN amount DROP DEFAULT;