foreignKeyTypeToSQLType method

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

Implementation

String? foreignKeyTypeToSQLType(TypeInfo idType, String idName,
    {List<EntityField>? entityFieldAnnotations}) {
  if (idType.isInt) {
    idType = TypeInfo.tBigInt;
  }

  var sqlType = typeToSQLType(idType, idName,
      entityFieldAnnotations: entityFieldAnnotations);
  return sqlType;
}