gothinkster / slim-php-realworld-example-app

Exemplary real world application built with Slim
https://realworld.io
427 stars 96 forks source link

error on Readme. #5

Closed horaciod closed 6 years ago

horaciod commented 6 years ago

in Data Seeding say "php vendor/bin/phinx migrate" but is not working but "php vendor/bin/phinx seed:run" works

alhoqbani commented 6 years ago

Yes, the readme is missing the second step.

You need to run both commands to seed the database.

To create the database schema:

php vendor/bin/phinx migrate

And to populate the data:

php vendor/bin/phinx seed:run

Also, as mentioned in the readme, you can use the command composer refresh-database to rollback all migrations, migrate the database and seed the data.