Can you give me an example of a groovy changeset using the modifyDataType
method?
I tried this:
databaseChangeLog = {
changeSet(author: "user", id: "5-1") {
modifyDataType(tableName: "test", columnName: "description4", newDataType: "int(11)")
}
}
But modifyDataType
is not recognized. I also tried modifyColumn
, but I get the same result.
The underlying question is: What kind of tags does the dsl support, and how are they used?
dbm-gorm-diff file.groovy
creates changesets withdropColumn
andaddColumn
instead of using modify. Perhaps column renaming/modifying is on the roadmap. You can probably write your own custom changeset to migrate the data in the short term. – Vig