Skip to content

Instantly share code, notes, and snippets.

@shavidzet
Created July 7, 2016 21:36
Show Gist options
  • Save shavidzet/758dcbc27c4a0e9b5b028af9661b1768 to your computer and use it in GitHub Desktop.
Save shavidzet/758dcbc27c4a0e9b5b028af9661b1768 to your computer and use it in GitHub Desktop.
Phinx migration with bash
PHINX=vendor/bin/phinx
read -p "Enviroment: " phinx_enviroment
$PHINX rollback -e $phinx_enviroment -t 0
$PHINX migrate -e $phinx_enviroment
ls -l db/seeds
read -p "Seed filename: " phinx_seed
$PHINX seed:run -e $phinx_enviroment -s $phinx_seed -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment