Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: Grails-Database-Migration 0.2.1
-
Fix Version/s: Grails-Database-Migration 1.2
-
Labels:None
Description
the --add switch for dbm-diff and dbm-gorm-diff works fine when adding either an .xml or a .groovy change to a .groovy root changelog, but has no effect when the root changelog is XML.
To reproduce:
grails create-app dbmigrationtest && cd dbmigrationtest grails install-plugin database-migration grails create-domain-class book # in DataSource.groovy, remove the dbCreate line from the development environment # in Config.groovy, set grails.plugin.databasemigration.changelogFileName = "changelog.xml" grails dbm-gorm-diff book.xml --add
changelog.xml is missing an include statement. It should insert <include file="book.xml"/> just before </databaseChangeLog>.