I’m trying to use the database-migration plugin for Grails, but I’m running into a funky problem with property types of text.
Generating a baseline log is setting the type as text(255), but this is an error because there is no precision. The same happens when I try to modify datatype to text.
changeSet(author: "jgiotta (generated)", id: "1348767652354-2") {
modifyDataType(columnName: "old_value", newDataType: "text",
schemaName: "dbo", tableName: "audit_trail")
}
What can I do to avoid this issue?
I solved it with a little bit of additional mapping.
Originally I was only doing:
What forced the type to at least
nvarchar(max)was the following mapping: