8 lines
379 B
SQL
8 lines
379 B
SQL
-- 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'));
|