typeToSQLType method

  1. @override
String? typeToSQLType(
  1. TypeInfo type,
  2. String column, {
  3. List<EntityField>? entityFieldAnnotations,
})
override

Implementation

@override
String? typeToSQLType(TypeInfo type, String column,
    {List<EntityField>? entityFieldAnnotations}) {
  var sqlType = super.typeToSQLType(type, column,
      entityFieldAnnotations: entityFieldAnnotations);

  if (sqlType == 'TIME') {
    return 'TIME WITHOUT TIME ZONE';
  }

  return sqlType;
}