I am using grails 2.0.3, database-migration (liquibase) plugin 1.1, and postgres 9.1.
I am seeing what I think is the same issue described by these other users, but with wrinkles:
- problem running liquibase with maven and postgres-db
- https://liquibase.jira.com/browse/CORE-183
- [other references removed, don't have enough reputation :(]
The wrinkles are that:
- I'm using grails and the database-migration plugin.
- The production database does not use the default schema.
- I must use the automatic database migration on start (grails.plugin.databasemigration.updateOnStart = true), because no developer has access to the actual production database(s).
My understanding of the issue is that liquibase is checking the default schema for the existence of its maintenance tables, and then attempts to create the tables in the right place, the non-default schema. But of course they already exist after the first execution. There seems to be a workaround by specifying a command-line option, but I don't have that option because of the requirement to run automated, within the grails app as-deployed.
Is there a way to make the database-migration plugin do what I need? Telling the DBAs to organize the schemas differently is not an option.
Thanks in advance, Ray A. Conner