salix/db/versions/10950-greenArborvitae/00-firstScript.sql

4 lines
169 B
SQL

-- Place your SQL code here
ALTER TABLE vn.packaging
MODIFY COLUMN volume decimal(10,2) CHECK (volume >= COALESCE(width, 1) * COALESCE(depth, 1) * COALESCE(height, 1));