This commit is contained in:
gowthaman
2024-04-29 19:49:53 +05:30
parent 387e203bc8
commit d28a3215d1
3 changed files with 19 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
-- drop dependencies
alter table product drop constraint if exists ck_product_uom;
-- apply alter tables
alter table product alter column uom type varchar(6);
alter table product add column if not exists gst_pct float;
-- 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'));