hemantvsn / c5-db-migration

Automatically exported from code.google.com/p/c5-db-migration
0 stars 0 forks source link

createSql property not being used by Maven reset mojo #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
Fixed in SVN, will be included in 0.9.3.

Original comment by christia...@gmail.com on 11 Oct 2008 at 7:58