diff --git a/src/Xethron/MigrationsGenerator/Generators/FieldGenerator.php b/src/Xethron/MigrationsGenerator/Generators/FieldGenerator.php index 0ac0220..39d61bb 100644 --- a/src/Xethron/MigrationsGenerator/Generators/FieldGenerator.php +++ b/src/Xethron/MigrationsGenerator/Generators/FieldGenerator.php @@ -55,7 +55,7 @@ protected function getEnum($table) ->where('table_schema', $this->database) ->where('table_name', $table) ->where('data_type', 'enum') - ->get(['column_name','column_type']); + ->get(['column_name as column_name','column_type as column_type']); if ($result) return $result; else