AbstractMigrationMojo has a createSql parameter but the reset mojo are not
using it.
This was tested on the 0.9.2 build.
For fixing changes are necessary in
com.carbonfive.db.migration.maven.ResetMojo:
Replace
new CreateDatabase(getDriver(), getUrl(), getUsername(),
getPassword()).execute();
to
String createSql = isBlank(getCreateSql()) ?
CreateDatabase.CREATE_DATABASE_SQL : getCreateSql();
new CreateDatabase(getDriver(), getUrl(), getUsername(),
getPassword()).execute(createSql);
Original issue reported on code.google.com by tumakha on 8 Oct 2008 at 11:22
Original issue reported on code.google.com by
tumakha
on 8 Oct 2008 at 11:22