Skip to content

Instantly share code, notes, and snippets.

@akondas
Created April 25, 2016 18:26
Show Gist options
  • Save akondas/ffb32b467b26ea8c1dbb93502ca3a90d to your computer and use it in GitHub Desktop.
Save akondas/ffb32b467b26ea8c1dbb93502ca3a90d to your computer and use it in GitHub Desktop.
Doctrine Migrations for multiple Entity Managers
#!/bin/bash
php app/console d:m:d --em=first --configuration=app/config/migration/first.yml
php app/console d:m:d --em=second --configuration=app/config/migration/second.yml
php app/console d:m:d --em=third --configuration=app/config/migration/third.yml
#!/bin/bash
php app/console d:m:m --no-interaction --em=first --configuration=app/config/migration/first.yml
php app/console d:m:m --no-interaction --em=second --configuration=app/config/migration/second.yml
php app/console d:m:m --no-interaction --em=third --configuration=app/config/migration/third.yml
#!/bin/bash
echo "first"
php app/console d:s:v --em=first
echo "---"
echo "second"
php app/console d:s:v --em=second
echo "---"
echo "third"
php app/console d:s:v --em=third
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment