i run few commands :
yii migrate
and
$ yii migrate/data templatedata
$ php yii migration/data templatedata
but all of the command that i run return the value :
bash: yii: command not found
// i am a beginner in git and php. can you guide me on how to solve the problem?
i already install the composer.
so after i run the command, it will create migration script with contain data from table.
my team already create a previous migration script on his pc and push to gitlab. but in my side, i just want to update the data. so it will update too in the script.
2
Answers
bash: yii: command not found
is telling you that bash doesn’t know what yii is.Have you:
Try to read documentation:
https://www.yiiframework.com/doc/guide/2.0/en/db-migrations#creating-migrations
This should help you understand the concept of the commands