A new topic, 'Feature suggestion', has been made on a board you are watching.
You can see it at
http://liquibase.org/forum/index.php?topic=96.new#new
The text of the topic is shown below:
I am migrating my project database to Liquibase.
There are several versions in production already .
Unfortunately there is no "version" mark in the database.
So I am creating a changelog like this:
Code:
<changeSet ...>
<preconditions onFail="MARK_RAN">
<!-- some preconditions to identify the state of database and whether it
is necessary to apply this change -->
</preconditions>
<!-- some update to the database -->
</changeSet>
When the changelog is executed the changeset will be marked as executed,
regardless of whether it was actually executed or not. This not convinient for
database state analysis.
I'd like to follow the rule "changelog table contains records only about
actually executed changesets"
So I suggest to introduce additional onFail action "SKIP" which is handled by
Liquibase in the following way:
1. the changeset record in changelog table gets some mark that changeset was
not executed due to precondition failure
2. During next database updates the Liquibase consider the changeset as
executed (e.g. do not evaluate the precondition and do not execute the
changeset).
The second item is important for checking whether the database state is up to
date or not.
If onFail="CONTINIE" is used then Liquibase indicates all such changesets as
"need to be executed" for an up to date database.
But I'd like to get "zero chagesets need to be executed" for an up to date
database.
Unsubscribe to new topics from this board by clicking here:
http://liquibase.org/forum/index.php?action=notifyboard;board=1.0
Regards,
The LiquiBase Community Forum Team.------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Liquibase-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/liquibase-user