private void alterMssqlTextColumns ( ) { ColumnType stateColType = getTypeOf ( getSnapshotTableNameWithSchema ( ) , "state" ) ; ColumnType changedPropertiesColType = getTypeOf ( getSnapshotTableNameWithSchema ( ) , "state" ) ; if ( stateColType . typeName . equals ( "text" ) ) { executeSQL ( "ALTER TABLE " + getSnapshotTableNameWithSchema ( ) + " ALTER COLUMN state VARCHAR(MAX)" ) ; } if ( changedPropertiesColType . typeName . equals ( "text" ) ) { executeSQL ( "ALTER TABLE " + getSnapshotTableNameWithSchema ( ) + " ALTER COLUMN changed_properties VARCHAR(MAX)" ) ; } }
JaVers 3 . 3 . 0 to 3 . 3 . 1 MsSql schema migration