Created
April 25, 2016 18:26
-
-
Save akondas/ffb32b467b26ea8c1dbb93502ca3a90d to your computer and use it in GitHub Desktop.
Doctrine Migrations for multiple Entity Managers
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
#!/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 |
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
#!/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 |
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
#!/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