Files
readymixerp_modules_api/src/main/resources/dbmigration/1.34.sql
gowthaman 2ee82a2eed add liter
2024-06-04 12:51:01 +05:30

8 lines
427 B
SQL

-- drop dependencies
alter table product drop constraint if exists ck_product_uom;
-- apply alter tables
alter table purchase_order alter column all_loading_site set default false;
alter table purchase_order alter column all_unloading_site set default false;
-- apply post alter
alter table product add constraint ck_product_uom check ( uom in ('KG','CFT','TON','LTR','NUMBER','MTR','BOX','CUM','PACKET','ALL','NOS','LITER'));