2 lines
139 B
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;
|