3 lines
139 B
MySQL
3 lines
139 B
MySQL
|
ALTER TABLE invoice ADD COLUMN amount BIGINT NOT NULL DEFAULT 0 CHECK (amount >= 0);
|
||
|
ALTER TABLE invoice ALTER COLUMN amount DROP DEFAULT;
|