Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NO_ISSUE: upgrading sql versions for persistence-commons-postgresql & persistence-commons-jpa to have a higher version than data-index #2126

Merged
merged 3 commits into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
quarkus.flyway.locations=classpath:kie-flyway/db/data-index/postgresql,classpath:kie-flyway/db/persistence-commons/postgresql
Original file line number Diff line number Diff line change
Expand Up @@ -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
module.locations.postgresql=classpath:kie-flyway/db/data-index/postgresql
module.locations.default=classpath:kie-flyway/db/data-index/ansi
Original file line number Diff line number Diff line change
@@ -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.
Original file line number Diff line number Diff line change
Expand Up @@ -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
module.locations.postgresql=classpath:kie-flyway/db/data-index/postgresql
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

module.name=persistence-commons

module.locations.postgresql=classpath:kie-flyway/db/persistence-commons/postgresql
module.locations.default=classpath:kie-flyway/db/persistence-commons/ansi
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

module.name=persistence-commons

module.locations.postgresql=classpath:kie-flyway/db/persistence-commons/postgresql
Loading