We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
! is_array()
is_string()
1 parent b8db96a commit ee10766Copy full SHA for ee10766
system/Database/Forge.php
@@ -734,7 +734,7 @@ public function renameTable(string $tableName, string $newTableName)
734
public function addColumn(string $table, $fields): bool
735
{
736
// Work-around for literal column definitions
737
- if (! is_array($field)) {
+ if (is_string($fields)) {
738
$fields = [$fields];
739
}
740
@@ -792,7 +792,7 @@ public function dropColumn(string $table, $columnNames)
792
public function modifyColumn(string $table, $fields): bool
793
794
795
796
797
798
0 commit comments