When I use nohup php yii migrate > ~/log.log 2>&1& it will tips a confirm prompt, but there is no options to ignore this.
Append a param like -y to ignore confirm.
| Q | A
| ---------------- | ---
| Yii version | 2.0.?
| PHP version | 7.1.4
| Operating system | Mac OS X / CentOS 7
This command has interactive switch: http://www.yiiframework.com/doc-2.0/guide-db-migrations.html#using-command-line-options
@rob006 Thank you very much :-)
# migrate the migrations in a forum module non-interactively
yii migrate --migrationPath=@app/modules/forum/migrations --interactive=0
Most helpful comment
This command has
interactiveswitch: http://www.yiiframework.com/doc-2.0/guide-db-migrations.html#using-command-line-options