Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: Grails-Database-Migration 1.0
-
Fix Version/s: Grails-Database-Migration 1.3
-
Labels:None
-
Environment:Windows 7, MS SQL server 2008
Description
BillingGroup.groovy
class Group {
String id
static mapping = {
id generator:'guid', column:'GroupID', sqlType:'uniqueidentifier'
}
}
'dbm-generate-gorm-changelog changelog.groovy' Is producing the following output for the changelog
changelog.groovy
databaseChangeLog = {
changeSet(author: "author123 (generated)", id: "1326891754141-1") {
createTable(tableName: "Group") {
column(name: "GroupID", type: "uniqueidentifier(255)") {
constraints(nullable: "false", primaryKey: "true", primaryKeyName: "GroupPK")
}
}
}
}
}
Just needs column width removing to properly define the change.