foreignKeyTypeToSQLType method

  1. @override
String? foreignKeyTypeToSQLType(
  1. TypeInfo idType,
  2. String idName, {
  3. List<EntityField>? entityFieldAnnotations,
})
override

Implementation

@override
String? foreignKeyTypeToSQLType(TypeInfo idType, String idName,
    {List<EntityField>? entityFieldAnnotations}) {
  var sqlType = super.foreignKeyTypeToSQLType(idType, idName,
      entityFieldAnnotations: entityFieldAnnotations);

  if (sqlType == 'BIGINT') {
    return '$sqlType UNSIGNED';
  }

  return sqlType;
}