From 3ce0f0250e6ceed3d23d8311d144cc0e03f784b1 Mon Sep 17 00:00:00 2001 From: Oscar Fernandez Date: Fri, 28 Aug 2020 18:58:39 -0300 Subject: [PATCH] Issue with type "text" fixed --- src/Way/Generators/Syntax/AddToTable.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Way/Generators/Syntax/AddToTable.php b/src/Way/Generators/Syntax/AddToTable.php index 2db34683..aaf045bf 100644 --- a/src/Way/Generators/Syntax/AddToTable.php +++ b/src/Way/Generators/Syntax/AddToTable.php @@ -58,7 +58,7 @@ private function addColumn($field) // If we have args, then it needs // to be formatted a bit differently - if (isset($field['args'])) + if (isset($field['args']) && $type !== 'text') { $output = sprintf( "\$table->%s('%s', %s)", @@ -96,4 +96,4 @@ protected function addDecorators($decorators) return $output; } -} \ No newline at end of file +}