This is an automated email from the ASF dual-hosted git repository.

wmedvedeo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-kogito-apps.git


The following commit(s) were added to refs/heads/main by this push:
     new a275c0174 NO_ISSUE: upgrading sql versions for 
`persistence-commons-postgresql` & `persistence-commons-jpa` to have a higher 
version than data-index (#2126)
a275c0174 is described below

commit a275c0174dcc313cc723e08a548f9eb4de1483a8
Author: Pere Fernández <[email protected]>
AuthorDate: Fri Oct 25 09:31:06 2024 +0200

    NO_ISSUE: upgrading sql versions for `persistence-commons-postgresql` & 
`persistence-commons-jpa` to have a higher version than data-index (#2126)
    
    * NO_ISSUE: upgrading sql versions for `persistence-commons-postgresql` & 
`persistence-commons-jpa` to have a higher version than data-index
    
    * - fix
    
    * - adjust message
---
 .../src/main/resources/application.properties                        | 2 +-
 .../src/main/resources/application.properties                        | 2 +-
 .../src/main/resources/META-INF/kie-flyway.properties                | 4 ++--
 .../src/main/resources/kie-flyway/db/data-index/ansi/readme.txt      | 2 ++
 .../src/main/resources/META-INF/kie-flyway.properties                | 2 +-
 .../runtime/src/main/resources/application.properties                | 2 +-
 .../src/main/resources/META-INF/kie-flyway.properties                | 5 +++--
 .../src/main/resources/META-INF/kie-flyway.properties                | 4 ++--
 8 files changed, 13 insertions(+), 10 deletions(-)

diff --git 
a/data-index/data-index-service/data-index-service-inmemory/src/main/resources/application.properties
 
b/data-index/data-index-service/data-index-service-inmemory/src/main/resources/application.properties
index 8f2849208..d7b4b2778 100644
--- 
a/data-index/data-index-service/data-index-service-inmemory/src/main/resources/application.properties
+++ 
b/data-index/data-index-service/data-index-service-inmemory/src/main/resources/application.properties
@@ -28,7 +28,7 @@ quarkus.datasource.db-kind=postgresql
 #Flyway - It's safe to enable Flyway by default for in-memory storage
 quarkus.flyway.migrate-at-start=true
 quarkus.flyway.baseline-on-migrate=true
-quarkus.flyway.locations=classpath:kie-flyway/db/data-index/postgresql
+quarkus.flyway.locations=classpath:kie-flyway/db/data-index/postgresql,classpath:kie-flyway/db/persistence-commons/postgresql
 
 #Hibernate
 quarkus.hibernate-orm.jdbc.timezone=UTC
diff --git 
a/data-index/data-index-service/data-index-service-postgresql/src/main/resources/application.properties
 
b/data-index/data-index-service/data-index-service-postgresql/src/main/resources/application.properties
index 4b9e5a219..acd24a5c6 100644
--- 
a/data-index/data-index-service/data-index-service-postgresql/src/main/resources/application.properties
+++ 
b/data-index/data-index-service/data-index-service-postgresql/src/main/resources/application.properties
@@ -38,4 +38,4 @@ quarkus.container-image.group=org.kie.kogito
 quarkus.jib.jvm-arguments=-Dquarkus.http.port=8080
 
 # Flyway Locations
-quarkus.flyway.locations=classpath:kie-flyway/db/data-index/postgresql
\ No newline at end of file
+quarkus.flyway.locations=classpath:kie-flyway/db/data-index/postgresql,classpath:kie-flyway/db/persistence-commons/postgresql
\ No newline at end of file
diff --git 
a/data-index/data-index-storage/data-index-storage-jpa/src/main/resources/META-INF/kie-flyway.properties
 
b/data-index/data-index-storage/data-index-storage-jpa/src/main/resources/META-INF/kie-flyway.properties
index 41c52109f..35f70ad9f 100644
--- 
a/data-index/data-index-storage/data-index-storage-jpa/src/main/resources/META-INF/kie-flyway.properties
+++ 
b/data-index/data-index-storage/data-index-storage-jpa/src/main/resources/META-INF/kie-flyway.properties
@@ -19,5 +19,5 @@
 
 module.name=data-index
 
-module.locations.postgresql=classpath:kie-flyway/db/data-index/postgresql,classpath:kie-flyway/db/persistence-commons/postgresql
-module.locations.default=classpath:kie-flyway/db/data-index/ansi,classpath:kie-flyway/db/persistence-commons/ansi
\ No newline at end of file
+module.locations.postgresql=classpath:kie-flyway/db/data-index/postgresql
+module.locations.default=classpath:kie-flyway/db/data-index/ansi
\ No newline at end of file
diff --git 
a/data-index/data-index-storage/data-index-storage-jpa/src/main/resources/kie-flyway/db/data-index/ansi/readme.txt
 
b/data-index/data-index-storage/data-index-storage-jpa/src/main/resources/kie-flyway/db/data-index/ansi/readme.txt
new file mode 100644
index 000000000..e08db4d0a
--- /dev/null
+++ 
b/data-index/data-index-storage/data-index-storage-jpa/src/main/resources/kie-flyway/db/data-index/ansi/readme.txt
@@ -0,0 +1,2 @@
+Ensure migration scripts are developed to support several executions over the 
same database without any error.
+This feature will make sure this migration execution would be compatible with 
other needed flyway migrations without broking the chain.
\ No newline at end of file
diff --git 
a/data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/META-INF/kie-flyway.properties
 
b/data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/META-INF/kie-flyway.properties
index 383546a8f..4adfed0d4 100644
--- 
a/data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/META-INF/kie-flyway.properties
+++ 
b/data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/META-INF/kie-flyway.properties
@@ -19,4 +19,4 @@
 
 module.name=data-index
 
-module.locations.postgresql=classpath:kie-flyway/db/data-index/postgresql,classpath:kie-flyway/db/persistence-commons/postgresql
\ No newline at end of file
+module.locations.postgresql=classpath:kie-flyway/db/data-index/postgresql
\ No newline at end of file
diff --git 
a/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-inmemory/runtime/src/main/resources/application.properties
 
b/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-inmemory/runtime/src/main/resources/application.properties
index 17182933f..36c137123 100644
--- 
a/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-inmemory/runtime/src/main/resources/application.properties
+++ 
b/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-inmemory/runtime/src/main/resources/application.properties
@@ -32,7 +32,7 @@ quarkus.hibernate-orm.datasource=data_index
 
quarkus.hibernate-orm.physical-naming-strategy=org.hibernate.boot.model.naming.CamelCaseToUnderscoresNamingStrategy
 
 #Flyway
-quarkus.flyway."data_index".locations=classpath:/kie-flyway/db/data-index/postgresql
+quarkus.flyway."data_index".locations=classpath:/kie-flyway/db/data-index/postgresql,classpath:kie-flyway/db/persistence-commons/postgresql
 quarkus.flyway."data_index".migrate-at-start=true
 
 kie.flyway.modules."data-index".enabled=false
\ No newline at end of file
diff --git 
a/data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/META-INF/kie-flyway.properties
 
b/persistence-commons/persistence-commons-jpa/src/main/resources/META-INF/kie-flyway.properties
similarity index 80%
copy from 
data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/META-INF/kie-flyway.properties
copy to 
persistence-commons/persistence-commons-jpa/src/main/resources/META-INF/kie-flyway.properties
index 383546a8f..cf9d0ea88 100644
--- 
a/data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/META-INF/kie-flyway.properties
+++ 
b/persistence-commons/persistence-commons-jpa/src/main/resources/META-INF/kie-flyway.properties
@@ -17,6 +17,7 @@
 # under the License.
 #
 
-module.name=data-index
+module.name=persistence-commons
 
-module.locations.postgresql=classpath:kie-flyway/db/data-index/postgresql,classpath:kie-flyway/db/persistence-commons/postgresql
\ No newline at end of file
+module.locations.postgresql=classpath:kie-flyway/db/persistence-commons/postgresql
+module.locations.default=classpath:kie-flyway/db/persistence-commons/ansi
\ No newline at end of file
diff --git 
a/data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/META-INF/kie-flyway.properties
 
b/persistence-commons/persistence-commons-postgresql/src/main/resources/META-INF/kie-flyway.properties
similarity index 83%
copy from 
data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/META-INF/kie-flyway.properties
copy to 
persistence-commons/persistence-commons-postgresql/src/main/resources/META-INF/kie-flyway.properties
index 383546a8f..4faa9f983 100644
--- 
a/data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/META-INF/kie-flyway.properties
+++ 
b/persistence-commons/persistence-commons-postgresql/src/main/resources/META-INF/kie-flyway.properties
@@ -17,6 +17,6 @@
 # under the License.
 #
 
-module.name=data-index
+module.name=persistence-commons
 
-module.locations.postgresql=classpath:kie-flyway/db/data-index/postgresql,classpath:kie-flyway/db/persistence-commons/postgresql
\ No newline at end of file
+module.locations.postgresql=classpath:kie-flyway/db/persistence-commons/postgresql
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to