Skip to content

Commit

Permalink
gestion des champs de type text()
Browse files Browse the repository at this point in the history
  • Loading branch information
xavier committed Jun 4, 2015
1 parent bfc1119 commit 10fd251
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Schema/Grammars/DB2Grammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,8 @@ protected function typeString(Fluent $column)
*/
protected function typeText(Fluent $column)
{
return 'text';
$colLength = ($column->length ? $column->length : 16369);
return "varchar($colLength)";
}

/**
Expand All @@ -457,7 +458,8 @@ protected function typeText(Fluent $column)
*/
protected function typeMediumText(Fluent $column)
{
return 'mediumtext';
$colLength = ($column->length ? $column->length : 16369);
return "varchar($colLength)";
}

/**
Expand All @@ -468,7 +470,8 @@ protected function typeMediumText(Fluent $column)
*/
protected function typeLongText(Fluent $column)
{
return 'longtext';
$colLength = ($column->length ? $column->length : 16369);
return "varchar($colLength)";
}

/**
Expand Down

0 comments on commit 10fd251

Please sign in to comment.