0

I'm working on a project where I'm using Illuminate's database component outside of Laravel 4.2 and trying to use Phinx for migrations from the command line. I've set up my database environments in the phinx.yml file for production, development, and my local, which I named "vagrant". When I try to run the "php vendor/bin/phinx migrate -e vagrant" it comes backs saying "Could not determine database name! Please specify a database name in your config file." I've tried multiple times to figure out what's causing it, the database name is correct. Any ideas?

Thanks!

  • did you confiugure the phinx.yml file? –  Jan 04 '16 at 22:21
  • That was exactly my problem, sort of. I configured it in the package's phyinx.php, not the new one that was created in the root directory when i created the project. Thanks for making me double check! –  Jan 05 '16 at 20:18
  • That part is a bit missing in the phinx documents..http://docs.phinx.org/en/latest/configuration.html. –  Jan 05 '16 at 20:31
  • Also be sure "there is no public access" that phinx.yml file.. –  Jan 05 '16 at 21:03

0 Answers0