Created
July 7, 2016 21:36
-
-
Save shavidzet/758dcbc27c4a0e9b5b028af9661b1768 to your computer and use it in GitHub Desktop.
Phinx migration with bash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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