3

I try to create new table using yii2 migration:

php yii migrate/create create_new_table 

When I use cmd everything is ok, but when I try do the same thing with git bash:

Error: Unknown command "migrate\create".

P.S. "php yii migrate" works OK.

1 Answers1

2

Just insert your php.exe complete path like:

C:\xampp\php\php.exe yii migrate/create create_new_table

If you don't want to write always complete php path, Set php.exe path on windows Env:

refer link

refer link

Community
  • 1
  • 1
Sajjad Dehghani
  • 592
  • 5
  • 15