Changeset 1406
- Timestamp:
- Jan 18, 2011, 1:12:24 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/conf/DatabaseUpgrade.groovy
r1405 r1406 37 37 * execute database change r1245 / r1246 if required 38 38 * @param sql 39 * @param db 39 40 */ 40 41 public static void changeStudyDescription(sql, db) { … … 83 84 * execute database change r1327 if required 84 85 * @param sql 86 * @param db 85 87 */ 86 88 public static void changeStudyDescriptionToText(sql, db) { … … 103 105 } 104 106 107 /** 108 * it appears that some TEXT template fields are not of type 'text' 109 * which results in the '255' character issue 110 * @param sql 111 * @param db 112 */ 105 113 public static void changeTemplateTextFieldSignatures(sql, db) { 106 114 if (db == "org.postgresql.Driver") { … … 111 119 try { 112 120 // change the datatype of text fields to text 113 sql.execute("ALTER TABLE ${row.tablename } ALTER COLUMN template_text_fields_elt TYPE text")114 sql.execute("ALTER TABLE ${row.tablename } ALTER COLUMN template_text_fields_string TYPE text")121 sql.execute("ALTER TABLE ${row.tablename.toString()} ALTER COLUMN template_text_fields_elt TYPE text") 122 sql.execute("ALTER TABLE ${row.tablename.toString()} ALTER COLUMN template_text_fields_string TYPE text") 115 123 116 124 } catch (Exception e) {
Note: See TracChangeset
for help on using the changeset viewer.