From 2ee82a2eed78a2becb30f646ddd04638ebe203a8 Mon Sep 17 00:00:00 2001 From: gowthaman Date: Tue, 4 Jun 2024 12:51:01 +0530 Subject: [PATCH] add liter --- src/main/resources/dbmigration/1.34.sql | 7 +++++++ src/main/resources/dbmigration/model/1.34.model.xml | 8 ++++++++ 2 files changed, 15 insertions(+) create mode 100644 src/main/resources/dbmigration/1.34.sql create mode 100644 src/main/resources/dbmigration/model/1.34.model.xml 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