Merge pull request 'feat: refs #7029 packaging' (!2164) from 7029-packagingVolumeRestriction into dev
gitea/salix/pipeline/head This commit looks good Details

Reviewed-on: #2164
Reviewed-by: Guillermo Bonet <guillermo@verdnatura.es>
This commit is contained in:
Robert Ferrús 2024-04-22 09:55:46 +00:00
commit 2e1cb6e827
1 changed files with 3 additions and 0 deletions

View File

@ -0,0 +1,3 @@
-- 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));