use of liquibase.datatype.core.ClobType in project liquibase by liquibase.
the class ClobTypeTest method mssqlTextToVarcharNoConvertTest.
@Test
public void mssqlTextToVarcharNoConvertTest() throws Exception {
Scope.child(GlobalConfiguration.CONVERT_DATA_TYPES.getKey(), false, () -> {
ClobType ct = new ClobType();
ct.finishInitialization("Text");
DatabaseDataType dbType = ct.toDatabaseDataType(new MSSQLDatabase());
assertEquals("varchar (max)", dbType.getType());
});
}
use of liquibase.datatype.core.ClobType in project liquibase by liquibase.
the class ClobTypeTest method mssqlNTextToNVarcharNoConvertTest.
@Test
public void mssqlNTextToNVarcharNoConvertTest() throws Exception {
Scope.child(GlobalConfiguration.CONVERT_DATA_TYPES.getKey(), false, () -> {
ClobType ct = new ClobType();
ct.finishInitialization("NText");
DatabaseDataType dbType = ct.toDatabaseDataType(new MSSQLDatabase());
assertEquals("nvarchar (max)", dbType.getType());
});
}
Aggregations