byjg / php-migration-cli

Command Line Interface for Database Migration
MIT License
8 stars 3 forks source link

migrate is not recognized #8

Closed andrehendrata closed 3 years ago

andrehendrata commented 3 years ago

Hi, Im really new to this I've tried to install composer require "byjg/migration":"4.2.*"

and tried to run command migrate, the result is migrate not recognized

image

maybe something missing? the same issue with vendor command and others

byjg commented 3 years ago

The Migration Command Line interface is in a different composer package.

To use the CLI you just need:

composer require "byjg/migration-cli":"4.1.*"

After install you can access directly by:

vendor/bin/migrate 

Note that the project byjg/migration-cli has a different versioning. Migration Cli in the version 4.1 and the migration libraries are in the version 4.2.

andrehendrata commented 3 years ago

tried with both 4.1 and 4.2 still has not recognized error image

migrate command also not recognized here

byjg commented 3 years ago

I just realize that you are using Windows. On Windows you need to run php vendor/bin/migrate

andrehendrata commented 3 years ago

I just realize that you are using Windows. On Windows you need to run php vendor/bin/migrate

ok thank you, it works now