Yii2: Yii2 migration confirm issue "Apply the above migrations?"

Created on 3 Jun 2017  路  2Comments  路  Source: yiisoft/yii2

What steps will reproduce the problem?

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.

What is the expected result?

Append a param like -y to ignore confirm.

What do you get instead?

Additional info

| Q | A
| ---------------- | ---
| Yii version | 2.0.?
| PHP version | 7.1.4
| Operating system | Mac OS X / CentOS 7

Most helpful comment

This command has interactive switch: http://www.yiiframework.com/doc-2.0/guide-db-migrations.html#using-command-line-options

All 2 comments

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
Was this page helpful?
0 / 5 - 0 ratings