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 5be7f7bd8 incubator-kie-kogito-apps-2295: Avoid flyway and hibernate 
initialization at the same time (#2296)
5be7f7bd8 is described below

commit 5be7f7bd8868f9693172bdd9aea273f676be5672
Author: Walter Medvedeo <[email protected]>
AuthorDate: Mon Jan 12 13:02:15 2026 +0100

    incubator-kie-kogito-apps-2295: Avoid flyway and hibernate initialization 
at the same time (#2296)
---
 .../src/main/resources/application.properties               |  2 --
 ..._adjust_column_sizes_in_tables_updated_by_hibernate.sql} | 13 +++++++++++--
 ...t_output_args.sql => V1.48.0__add_input_output_args.sql} |  0
 ..._adjust_column_sizes_in_tables_updated_by_hibernate.sql} | 13 +++++++++++--
 ...t_output_args.sql => V1.48.0__add_input_output_args.sql} |  0
 5 files changed, 22 insertions(+), 6 deletions(-)

diff --git 
a/data-index/data-index-quarkus/data-index-service-inmemory/src/main/resources/application.properties
 
b/data-index/data-index-quarkus/data-index-service-inmemory/src/main/resources/application.properties
index d7b4b2778..12c837088 100644
--- 
a/data-index/data-index-quarkus/data-index-service-inmemory/src/main/resources/application.properties
+++ 
b/data-index/data-index-quarkus/data-index-service-inmemory/src/main/resources/application.properties
@@ -32,8 +32,6 @@ 
quarkus.flyway.locations=classpath:kie-flyway/db/data-index/postgresql,classpath
 
 #Hibernate
 quarkus.hibernate-orm.jdbc.timezone=UTC
-quarkus.hibernate-orm.database.generation=update
-quarkus.hibernate-orm.database.generation.halt-on-error=true
 
quarkus.hibernate-orm.physical-naming-strategy=org.hibernate.boot.model.naming.CamelCaseToUnderscoresNamingStrategy
 
 #Container image
diff --git 
a/data-index/data-index-storage/data-index-storage-jpa/src/main/resources/kie-flyway/db/data-index/ansi/V1.47.0__add_input_output_args.sql
 
b/data-index/data-index-storage/data-index-storage-jpa/src/main/resources/kie-flyway/db/data-index/ansi/V1.47.0__adjust_column_sizes_in_tables_updated_by_hibernate.sql
similarity index 63%
copy from 
data-index/data-index-storage/data-index-storage-jpa/src/main/resources/kie-flyway/db/data-index/ansi/V1.47.0__add_input_output_args.sql
copy to 
data-index/data-index-storage/data-index-storage-jpa/src/main/resources/kie-flyway/db/data-index/ansi/V1.47.0__adjust_column_sizes_in_tables_updated_by_hibernate.sql
index 742a1bed6..2167b8751 100644
--- 
a/data-index/data-index-storage/data-index-storage-jpa/src/main/resources/kie-flyway/db/data-index/ansi/V1.47.0__add_input_output_args.sql
+++ 
b/data-index/data-index-storage/data-index-storage-jpa/src/main/resources/kie-flyway/db/data-index/ansi/V1.47.0__adjust_column_sizes_in_tables_updated_by_hibernate.sql
@@ -17,5 +17,14 @@
  * under the License.
  */
 
-ALTER TABLE nodes ADD COLUMN input_args varchar(max);
-ALTER TABLE nodes ADD COLUMN output_args varchar(max);
\ No newline at end of file
+ALTER TABLE tasks ALTER COLUMN external_reference_id SET DATA TYPE 
VARCHAR(4000);
+
+ALTER TABLE comments ALTER COLUMN content SET DATA TYPE VARCHAR(1000);
+
+ALTER TABLE nodes ALTER COLUMN error_message SET DATA TYPE VARCHAR(65535);
+
+ALTER TABLE processes ALTER COLUMN message SET DATA TYPE VARCHAR(65535);
+
+ALTER TABLE processes ALTER COLUMN cloud_event_id SET DATA TYPE VARCHAR(1000);
+
+ALTER TABLE processes ALTER COLUMN cloud_event_source SET DATA TYPE 
VARCHAR(1000);
\ 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/V1.47.0__add_input_output_args.sql
 
b/data-index/data-index-storage/data-index-storage-jpa/src/main/resources/kie-flyway/db/data-index/ansi/V1.48.0__add_input_output_args.sql
similarity index 100%
copy from 
data-index/data-index-storage/data-index-storage-jpa/src/main/resources/kie-flyway/db/data-index/ansi/V1.47.0__add_input_output_args.sql
copy to 
data-index/data-index-storage/data-index-storage-jpa/src/main/resources/kie-flyway/db/data-index/ansi/V1.48.0__add_input_output_args.sql
diff --git 
a/data-index/data-index-storage/data-index-storage-jpa/src/main/resources/kie-flyway/db/data-index/ansi/V1.47.0__add_input_output_args.sql
 
b/data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/kie-flyway/db/data-index/postgresql/V1.47.0__adjust_column_sizes_in_tables_updated_by_hibernate.sql
similarity index 63%
rename from 
data-index/data-index-storage/data-index-storage-jpa/src/main/resources/kie-flyway/db/data-index/ansi/V1.47.0__add_input_output_args.sql
rename to 
data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/kie-flyway/db/data-index/postgresql/V1.47.0__adjust_column_sizes_in_tables_updated_by_hibernate.sql
index 742a1bed6..298aab4d8 100644
--- 
a/data-index/data-index-storage/data-index-storage-jpa/src/main/resources/kie-flyway/db/data-index/ansi/V1.47.0__add_input_output_args.sql
+++ 
b/data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/kie-flyway/db/data-index/postgresql/V1.47.0__adjust_column_sizes_in_tables_updated_by_hibernate.sql
@@ -17,5 +17,14 @@
  * under the License.
  */
 
-ALTER TABLE nodes ADD COLUMN input_args varchar(max);
-ALTER TABLE nodes ADD COLUMN output_args varchar(max);
\ No newline at end of file
+ALTER TABLE IF EXISTS tasks ALTER COLUMN external_reference_id TYPE 
VARCHAR(4000);
+
+ALTER TABLE IF EXISTS comments ALTER COLUMN content TYPE VARCHAR(1000);
+
+ALTER TABLE IF EXISTS nodes ALTER COLUMN error_message TYPE VARCHAR(65535);
+
+ALTER TABLE IF EXISTS processes ALTER COLUMN message TYPE VARCHAR(65535);
+
+ALTER TABLE IF EXISTS processes ALTER COLUMN cloud_event_id TYPE VARCHAR(1000);
+
+ALTER TABLE IF EXISTS processes ALTER COLUMN cloud_event_source TYPE 
VARCHAR(1000);
\ No newline at end of file
diff --git 
a/data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/kie-flyway/db/data-index/postgresql/V1.47.0__add_input_output_args.sql
 
b/data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/kie-flyway/db/data-index/postgresql/V1.48.0__add_input_output_args.sql
similarity index 100%
rename from 
data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/kie-flyway/db/data-index/postgresql/V1.47.0__add_input_output_args.sql
rename to 
data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/kie-flyway/db/data-index/postgresql/V1.48.0__add_input_output_args.sql


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

Reply via email to