From 10fd2513bfff6d41ef6fafdce7a6f8d90b610aee Mon Sep 17 00:00:00 2001 From: xavier Date: Thu, 4 Jun 2015 11:42:05 +0200 Subject: [PATCH] gestion des champs de type text() --- src/Schema/Grammars/DB2Grammar.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Schema/Grammars/DB2Grammar.php b/src/Schema/Grammars/DB2Grammar.php index c110d58..b424260 100644 --- a/src/Schema/Grammars/DB2Grammar.php +++ b/src/Schema/Grammars/DB2Grammar.php @@ -446,7 +446,8 @@ class DB2Grammar extends Grammar { */ protected function typeText(Fluent $column) { - return 'text'; + $colLength = ($column->length ? $column->length : 16369); + return "varchar($colLength)"; } /** @@ -457,7 +458,8 @@ class DB2Grammar extends Grammar { */ protected function typeMediumText(Fluent $column) { - return 'mediumtext'; + $colLength = ($column->length ? $column->length : 16369); + return "varchar($colLength)"; } /** @@ -468,7 +470,8 @@ class DB2Grammar extends Grammar { */ protected function typeLongText(Fluent $column) { - return 'longtext'; + $colLength = ($column->length ? $column->length : 16369); + return "varchar($colLength)"; } /**