mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-16 07:11:19 +08:00
sort options by action in Migration controller
This commit is contained in:
@ -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
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user