fedimovies/mitra-models/migrations/V0033__invoice__add_amount.sql

3 lines
139 B
MySQL
Raw Normal View History

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