From 8ffb09713d2f565c81f2c42e87748221a6afeb8b Mon Sep 17 00:00:00 2001 From: Oscar Alejandro Fernandez Date: Mon, 25 Jan 2021 22:39:54 -0300 Subject: [PATCH] Fix Issue #34 --- src/OscarAFDev/MigrationsGenerator/Syntax/AddToTable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OscarAFDev/MigrationsGenerator/Syntax/AddToTable.php b/src/OscarAFDev/MigrationsGenerator/Syntax/AddToTable.php index 4380de1..3cb03e2 100644 --- a/src/OscarAFDev/MigrationsGenerator/Syntax/AddToTable.php +++ b/src/OscarAFDev/MigrationsGenerator/Syntax/AddToTable.php @@ -45,7 +45,7 @@ protected function getItem(array $field) } else { $output = sprintf( - "\$table->%s('%s', %s)", + "\$table->%s(%s, %s)", $type, $property, $field['args']