gothinkster / slim-php-realworld-example-app

Exemplary real world application built with Slim

Home Page:https://realworld.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error on Readme.

horaciod opened this issue · comments

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

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.