diff --git a/src/main/resources/dbmigration/1.34.sql b/src/main/resources/dbmigration/1.34.sql new file mode 100644 index 0000000..72fa1d0 --- /dev/null +++ b/src/main/resources/dbmigration/1.34.sql @@ -0,0 +1,7 @@ +-- 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')); diff --git a/src/main/resources/dbmigration/model/1.34.model.xml b/src/main/resources/dbmigration/model/1.34.model.xml new file mode 100644 index 0000000..b6d8e7a --- /dev/null +++ b/src/main/resources/dbmigration/model/1.34.model.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file