Skip to content

Instantly share code, notes, and snippets.

@jeremymarc
Last active December 12, 2015 02:19
Show Gist options
  • Save jeremymarc/4698333 to your computer and use it in GitHub Desktop.
Save jeremymarc/4698333 to your computer and use it in GitHub Desktop.
Sync doctrine migration_versions with your DB
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