Phinx is an awesome tool for creating database migrations using PHP. Kind of like Rake for Ruby.
The documentation is fairly straightforward for development use, as well as for use cases where you would add your database credentials directly to the config file (though I can’t think of a good use case for that!).
To check if migrations have been executed in, say, your local environment, you’d run the following command:
vendor/bin/phinx status -e development
Being new to Heroku, however, I got stuck trying to do the same from the CLI. I tried this:
heroku run phinx status -e staging
However, Phinx responded with the following (edited to remove my Heroku URL):
Here’s the proper syntax:
heroku run -- phinx status -e staging
I hope this helps someone else!