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