You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are in the process of upgrading Liquibase from 3.5.1 to 4.29.2 and run into an issue with Precondition. Precondition always fails because it looks like all preconditions are being checked prior to any changelog execution. Is there any new breaking changes on Precondition in Liquibase 4? we can't seem to find any info on that.
Here's the quick overview of our changelogs configs:
master-changelog.xml
include changelog-1.xml
include changelog-2.xml
Below is the logs (we changed precondition to WARN so we can see what actually happened
WARNING: Executing mcr-liquibase/conf/changelog-master.xml despite precondition failure due to onFail='WARN':
1 preconditions failed
mcr-liquibase/conf/changelog-master.xml : Changeset '/conf/1.0/changelog-1.0.xml::tag-release-1.0::abc' has not been run
[2024-10-14 11:14:02] INFO [liquibase.ui] WARNING: Executing mcr-liquibase/conf/changelog-master.xml despite precondition failure due to onFail='WARN':
1 preconditions failed
mcr-liquibase/conf/changelog-master.xml : Changeset '/conf/1.0/changelog-1.0.xml::tag-release-1.0::abc' has not been run
[2024-10-14 11:14:02] WARNING [liquibase.precondition] Executing mcr-liquibase/conf/changelog-master.xml despite precondition failure due to onFail='WARN':
1 preconditions failed
mcr-liquibase/conf/changelog-master.xml : Changeset '/conf/1.0/changelog-1.0.xml::tag-release-1.0::abc' has not been run
WARNING: Executing mcr-liquibase/conf/changelog-master.xml despite precondition failure due to onFail='WARN':
1 preconditions failed
mcr-liquibase/conf/changelog-master.xml : Changeset 'changelog-2.0.xml::tag-release-2.0::abc' has not been run
[2024-10-14 11:14:02] INFO [liquibase.ui] WARNING: Executing mcr-liquibase/conf/changelog-master.xml despite precondition failure due to onFail='WARN':
1 preconditions failed
mcr-liquibase/conf/changelog-master.xml : Changeset 'changelog-2.0.xml::tag-release-2.0::abc' has not been run
[2024-10-14 11:14:02] WARNING [liquibase.precondition] Executing mcr-liquibase/conf/changelog-master.xml despite precondition failure due to onFail='WARN':
1 preconditions failed
mcr-liquibase/conf/changelog-master.xml : Changeset 'changelog-2.0.xml::tag-release-2.0::abc' has not been run
..........
[2024-10-14 11:14:02] INFO [liquibase.lockservice] Successfully acquired change log lock
[2024-10-14 11:14:02] INFO [liquibase.command] Using deploymentId: 8918842478
[2024-10-14 11:14:02] INFO [liquibase.changelog] Reading from abc.databasechangelog
Running Changeset: abc-liquibase/conf/1.0/changelog-1.0.xml::tag-release-0.0::abc
[2024-10-14 11:14:02] INFO [liquibase.ui] Running Changeset: abc-liquibase/conf/1.0/changelog-1.0.xml::tag-release-0.0::abc
[2024-10-14 11:14:02] INFO [liquibase.snapshot] Creating snapshot
[2024-10-14 11:14:02] INFO [liquibase.changelog] Tag 'abc-app-0.0' applied to database
[2024-10-14 11:14:02] INFO [liquibase.changelog] ChangeSet abc-liquibase/conf/1.0/changelog-1.0.xml::tag-release-0.0::abc ran successfully in 120ms
Running Changeset: conf/1.0/changelog-1.0-person.xml::create-person-table::abc
[2024-10-14 11:14:02] INFO [liquibase.ui] Running Changeset: conf/1.0/abcchangelog-1.0-person.xml::create-person-table::abc
[2024-10-14 11:14:02] INFO [liquibase.changelog] Table prsn created
[2024-10-14 11:14:02] INFO [liquibase.changelog] ChangeSet conf/1.0/abcchangelog-1.0-person.xml::create-person-table::abc ran successfully in 29ms
Running Changeset: conf/1.0/changelog-1.0-person.xml::create-person-staging-table::abc
The text was updated successfully, but these errors were encountered:
Liquibase: 4.29.2
Liquibase-gradle-plugin: 3.0.1
We are in the process of upgrading Liquibase from 3.5.1 to 4.29.2 and run into an issue with Precondition. Precondition always fails because it looks like all preconditions are being checked prior to any changelog execution. Is there any new breaking changes on Precondition in Liquibase 4? we can't seem to find any info on that.
Here's the quick overview of our changelogs configs:
master-changelog.xml
include changelog-1.xml
include changelog-2.xml
changelog-1.xml
changelog-2.xml
Below is the logs (we changed precondition to WARN so we can see what actually happened
WARNING: Executing mcr-liquibase/conf/changelog-master.xml despite precondition failure due to onFail='WARN':
1 preconditions failed
mcr-liquibase/conf/changelog-master.xml : Changeset '/conf/1.0/changelog-1.0.xml::tag-release-1.0::abc' has not been run
[2024-10-14 11:14:02] INFO [liquibase.ui] WARNING: Executing mcr-liquibase/conf/changelog-master.xml despite precondition failure due to onFail='WARN':
1 preconditions failed
mcr-liquibase/conf/changelog-master.xml : Changeset '/conf/1.0/changelog-1.0.xml::tag-release-1.0::abc' has not been run
[2024-10-14 11:14:02] WARNING [liquibase.precondition] Executing mcr-liquibase/conf/changelog-master.xml despite precondition failure due to onFail='WARN':
1 preconditions failed
mcr-liquibase/conf/changelog-master.xml : Changeset '/conf/1.0/changelog-1.0.xml::tag-release-1.0::abc' has not been run
WARNING: Executing mcr-liquibase/conf/changelog-master.xml despite precondition failure due to onFail='WARN':
1 preconditions failed
mcr-liquibase/conf/changelog-master.xml : Changeset 'changelog-2.0.xml::tag-release-2.0::abc' has not been run
[2024-10-14 11:14:02] INFO [liquibase.ui] WARNING: Executing mcr-liquibase/conf/changelog-master.xml despite precondition failure due to onFail='WARN':
1 preconditions failed
mcr-liquibase/conf/changelog-master.xml : Changeset 'changelog-2.0.xml::tag-release-2.0::abc' has not been run
[2024-10-14 11:14:02] WARNING [liquibase.precondition] Executing mcr-liquibase/conf/changelog-master.xml despite precondition failure due to onFail='WARN':
1 preconditions failed
mcr-liquibase/conf/changelog-master.xml : Changeset 'changelog-2.0.xml::tag-release-2.0::abc' has not been run
..........
[2024-10-14 11:14:02] INFO [liquibase.lockservice] Successfully acquired change log lock
[2024-10-14 11:14:02] INFO [liquibase.command] Using deploymentId: 8918842478
[2024-10-14 11:14:02] INFO [liquibase.changelog] Reading from abc.databasechangelog
Running Changeset: abc-liquibase/conf/1.0/changelog-1.0.xml::tag-release-0.0::abc
[2024-10-14 11:14:02] INFO [liquibase.ui] Running Changeset: abc-liquibase/conf/1.0/changelog-1.0.xml::tag-release-0.0::abc
[2024-10-14 11:14:02] INFO [liquibase.snapshot] Creating snapshot
[2024-10-14 11:14:02] INFO [liquibase.changelog] Tag 'abc-app-0.0' applied to database
[2024-10-14 11:14:02] INFO [liquibase.changelog] ChangeSet abc-liquibase/conf/1.0/changelog-1.0.xml::tag-release-0.0::abc ran successfully in 120ms
Running Changeset: conf/1.0/changelog-1.0-person.xml::create-person-table::abc
[2024-10-14 11:14:02] INFO [liquibase.ui] Running Changeset: conf/1.0/abcchangelog-1.0-person.xml::create-person-table::abc
[2024-10-14 11:14:02] INFO [liquibase.changelog] Table prsn created
[2024-10-14 11:14:02] INFO [liquibase.changelog] ChangeSet conf/1.0/abcchangelog-1.0-person.xml::create-person-table::abc ran successfully in 29ms
Running Changeset: conf/1.0/changelog-1.0-person.xml::create-person-staging-table::abc
The text was updated successfully, but these errors were encountered: