foreignKeyTypeToSQLType method
String?
foreignKeyTypeToSQLType(
- TypeInfo idType,
- String idName, {
- 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;
}