A new topic, 'Problems with LiquiBase Maven integration and empty database
(hibernate)', has been made on a board you are watching.
You can see it at
http://liquibase.org/forum/index.php?topic=814.new#new
The text of the topic is shown below:
Hi,
I've started to use LiquiBase in a project integrated with Maven. I've
configured LiquiBase Maven plugin as explained in the website and it seems that
it works.
However, I'm finding a problem. If someone adds a changeset and I've not
created my database. When I do "mvn clean install" I get an error as tables
related with changes don't exist.
I guess that the problem is because I'm executing LiquiBase before the database
is created, this is automatically done by hibernate, the specified phase is:
<phase>process-resources</phase>
Anyway even if I move LiquiBase execution to a later phase, the database is
going to be created properly but the changeset is not being able to be applied
anyway. It should be somehow marked as already applied.
For example, you could think in a changeset that change a column name. If you
execute this change:
Before database creation is not going to work: Column doesn't exist.
After database creation is not going to work either: Column is already with
right name.
A possible solution would be to have a first changeset with all the tables and
fields created by hibernate and then add the new changesets. This would mean
that I couldn't take advantage of some changes that are automatically done by
Hibernate, like add a new column and things like that.
Did you find this problem before? Any other solution?
Thanks you very much,
Rego
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.
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Liquibase-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/liquibase-user