N
N
NedoProgrammist19792020-06-11 18:38:50
Yii
NedoProgrammist1979, 2020-06-11 18:38:50

Adding a migration in yii2?

Good afternoon, when adding a migration, a problem arises,
5ee24fd473c98285453278.png tell me who knows pzh. I seem to have checked everything and nothing helps

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2020-06-11
@NedoProgrammist1979

You need to run the command from the PHP executable php yii migrate. In this case, you must have two files in the directory: yii and yii.bat . It is important to run the script exactly from the directory where these files are located. If you have files in bin/yiior app/yii, then you need to go to this directory

cd app
php yii migrate

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question