Answer the question
In order to leave comments, you need to log in
Adding a migration in yii2?
Good afternoon, when adding a migration, a problem arises,
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
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/yii
or 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 questionAsk a Question
731 491 924 answers to any question