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.
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.
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: