1) Not yet. I should write one up. The short answer is:
// Corresponding to
http://www.liquibase.org/manual/preconditions
preConditions { // Thank Liquibase for the funny spelling
dbms(type:'oracle')
runningAs(username:'SYSTEM')
}
2) You've pretty much hit the nail on the head. First, establish preConditions, so that you're not
assuming anything about the state of the database when the migration is fired: you should be able to
go from an empty database, through a full set of migrations, and end up with someone you like. For
an entirely new client, it'd probably be easier to wipe out all the non-constructive migration
scripts and just use HBM2DDL to provide the baseline.
Copying over the table is probably not a great idea. Lying to Autobase about the state of the
database seems highly dubious.
~~ Robert.
--
~~ Robert Fischer.
Grails Trainining
http://www.smokejumperit.com/grails_training.html
Smokejumper Consulting
http://smokejumperit.com
Enfranchised Mind Blog
http://enfranchisedmind.com/blog