From 5382e601cb1e904a9a6db855af4b116a368dfb1c Mon Sep 17 00:00:00 2001 From: khuddus shariff Date: Tue, 22 Oct 2024 17:55:09 +0530 Subject: [PATCH 1/2] MOSIP-36412 Changing DB versions for 1.3.x branch Signed-off-by: khuddus shariff --- .../registration-services/src/main/resources/spring.properties | 2 +- .../main/resources/sql/{1.2.1 => 1.3.0}/initial_db_scripts.sql | 0 .../main/resources/sql/{1.2.1 => 1.3.0}/rollback_scripts.sql | 0 3 files changed, 1 insertion(+), 1 deletion(-) rename registration/registration-services/src/main/resources/sql/{1.2.1 => 1.3.0}/initial_db_scripts.sql (100%) rename registration/registration-services/src/main/resources/sql/{1.2.1 => 1.3.0}/rollback_scripts.sql (100%) diff --git a/registration/registration-services/src/main/resources/spring.properties b/registration/registration-services/src/main/resources/spring.properties index ed3935a31a..7537312064 100644 --- a/registration/registration-services/src/main/resources/spring.properties +++ b/registration/registration-services/src/main/resources/spring.properties @@ -8,7 +8,7 @@ mosip.max-languages.count=1 #Property to support version upgrade. Version upgrade includes software upgrade and DB upgrade. During the DB upgrade, the DB scripts execution will be done based on the order of versions mentioned here. #The name of the backup folder which is created during software upgrade will be used as the previously installed version. -mosip.registration.verion.upgrade.version-mappings={ "1.1.4":{ "dbVersion":"1.1.4", "releaseOrder":1}, "1.1.5":{ "dbVersion":"1.1.5", "releaseOrder":2}, "1.1.5.5-P1":{ "dbVersion":"1.1.5.5", "releaseOrder":3}, "1.2.0.1-B1":{ "dbVersion":"1.2.0.1", "releaseOrder":4, "fullSyncEntities":"DynamicFieldDto"}, "1.2.1-SNAPSHOT":{ "dbVersion":"1.2.1", "releaseOrder":5} } +mosip.registration.verion.upgrade.version-mappings={ "1.1.4":{ "dbVersion":"1.1.4", "releaseOrder":1}, "1.1.5":{ "dbVersion":"1.1.5", "releaseOrder":2}, "1.1.5.5-P1":{ "dbVersion":"1.1.5.5", "releaseOrder":3}, "1.2.0.1-B1":{ "dbVersion":"1.2.0.1", "releaseOrder":4, "fullSyncEntities":"DynamicFieldDto"}, "1.3.0-SNAPSHOT":{ "dbVersion":"1.3.0", "releaseOrder":5} } hibernate.hbm2ddl.auto=none hibernate.dialect=org.hibernate.dialect.DerbyDialect diff --git a/registration/registration-services/src/main/resources/sql/1.2.1/initial_db_scripts.sql b/registration/registration-services/src/main/resources/sql/1.3.0/initial_db_scripts.sql similarity index 100% rename from registration/registration-services/src/main/resources/sql/1.2.1/initial_db_scripts.sql rename to registration/registration-services/src/main/resources/sql/1.3.0/initial_db_scripts.sql diff --git a/registration/registration-services/src/main/resources/sql/1.2.1/rollback_scripts.sql b/registration/registration-services/src/main/resources/sql/1.3.0/rollback_scripts.sql similarity index 100% rename from registration/registration-services/src/main/resources/sql/1.2.1/rollback_scripts.sql rename to registration/registration-services/src/main/resources/sql/1.3.0/rollback_scripts.sql From a3a561ed1031f6093a29c1812e7ed850e014fffa Mon Sep 17 00:00:00 2001 From: khuddus shariff Date: Mon, 28 Oct 2024 17:44:26 +0530 Subject: [PATCH 2/2] MOSIP-36412 Changing DB versions for 1.3.x branch Signed-off-by: khuddus shariff --- .../registration-services/src/main/resources/spring.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/registration/registration-services/src/main/resources/spring.properties b/registration/registration-services/src/main/resources/spring.properties index 7537312064..e69cff933e 100644 --- a/registration/registration-services/src/main/resources/spring.properties +++ b/registration/registration-services/src/main/resources/spring.properties @@ -8,7 +8,7 @@ mosip.max-languages.count=1 #Property to support version upgrade. Version upgrade includes software upgrade and DB upgrade. During the DB upgrade, the DB scripts execution will be done based on the order of versions mentioned here. #The name of the backup folder which is created during software upgrade will be used as the previously installed version. -mosip.registration.verion.upgrade.version-mappings={ "1.1.4":{ "dbVersion":"1.1.4", "releaseOrder":1}, "1.1.5":{ "dbVersion":"1.1.5", "releaseOrder":2}, "1.1.5.5-P1":{ "dbVersion":"1.1.5.5", "releaseOrder":3}, "1.2.0.1-B1":{ "dbVersion":"1.2.0.1", "releaseOrder":4, "fullSyncEntities":"DynamicFieldDto"}, "1.3.0-SNAPSHOT":{ "dbVersion":"1.3.0", "releaseOrder":5} } +mosip.registration.verion.upgrade.version-mappings={ "1.1.4":{ "dbVersion":"1.1.4", "releaseOrder":1}, "1.1.5":{ "dbVersion":"1.1.5", "releaseOrder":2}, "1.1.5.5-P1":{ "dbVersion":"1.1.5.5", "releaseOrder":3}, "1.2.0.1-B1":{ "dbVersion":"1.2.0.1", "releaseOrder":4, "fullSyncEntities":"DynamicFieldDto"}, "1.3.0-B1-SNAPSHOT":{ "dbVersion":"1.3.0", "releaseOrder":5} } hibernate.hbm2ddl.auto=none hibernate.dialect=org.hibernate.dialect.DerbyDialect