Browse Source

sort options by action in Migration controller

tags/2.0.0-beta
Christian Nadolle 11 years ago
parent
commit
0051a1ece4
  1. 7
      framework/console/controllers/MigrateController.php

7
framework/console/controllers/MigrateController.php

@ -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
);
}
/**

Loading…
Cancel
Save