Skip to content

Commit

Permalink
Support MySQL type 'text' as string
Browse files Browse the repository at this point in the history
  • Loading branch information
gerryd committed Apr 4, 2022
1 parent f5591db commit f510128
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Skeleton/Application/Api/Media/Type.php
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ public static function create_for_mysql_type($mysql_type) {
return $media_type;
}

if (strpos($mysql_type, 'varchar') === 0) {
if (strpos($mysql_type, 'varchar') === 0 || $mysql_type === 'text') {
$media_type->type = 'string';
return $media_type;
}
Expand Down

0 comments on commit f510128

Please sign in to comment.