Last active
December 12, 2015 02:19
-
-
Save jeremymarc/4698333 to your computer and use it in GitHub Desktop.
Sync doctrine migration_versions with your DB
This file contains 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
ls app/DoctrineMigrations/|sed 's/Version//'|sed 's/.php//'|while read v; do echo "insert ignore into migration_versions values ('$v');"; done|mysql -uuser -ppass databse |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment