diff --git a/framework/console/controllers/MigrateController.php b/framework/console/controllers/MigrateController.php index 7584152..e165668 100644 --- a/framework/console/controllers/MigrateController.php +++ b/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 + ); } /**