sort options by action in Migration controller

This commit is contained in:
Christian Nadolle
2014-03-09 22:36:59 +01:00
parent 706ab7f968
commit 0051a1ece4

View File

@ -97,9 +97,10 @@ class MigrateController extends Controller
*/
public function options($id)
{
return array_merge(parent::options($id), [
'migrationPath', 'migrationTable', 'db', 'templateFile', 'interactive', 'color'
]);
return array_merge(parent::options($id),
['migrationPath', 'migrationTable', 'db'], // global for all actions
($id == 'create') ? ['templateFile'] : [] // action create
);
}
/**