Skip to content

Commit

Permalink
Merge pull request #10 from el3zahaby/patch-1
Browse files Browse the repository at this point in the history
fix '$column' keys by el3zahaby
  • Loading branch information
oscarafdev authored Feb 22, 2020
2 parents 185d97a + 213bed3 commit 9d1e854
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ protected function getEnum($table)
protected function setEnum(array $fields, $table)
{
foreach ($this->getEnum($table) as $column) {
$fields[$column->COLUMN_NAME]['type'] = 'enum';
$fields[$column->COLUMN_NAME]['args'] = str_replace('enum(', 'array(', $column->COLUMN_TYPE);
$fields[$column->column_name]['type'] = 'enum';
$fields[$column->column_name]['args'] = str_replace('enum(', 'array(', $column->column_type);
}
return $fields;
}
Expand Down

0 comments on commit 9d1e854

Please sign in to comment.