skip to Main Content

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


  1. bash: yii: command not found is telling you that bash doesn’t know what yii is.
    Have you:

    1. Installed yii?
    2. Added yii to your path?
    Login or Signup to reply.
  2. 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

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search