There are 2 databases used in a Symfony2 project and there is a migration script which is placed at location
app/DoctrineMigrations/codes/Version20150914201128.php
This migration is not for default database, its for the second database used.
There is a need to run migration script on user selection. On some action a pop-up will open and if a user selects "Yes" then only I need to run that migration script.
So is it possible or correct way to run migration script via Controller or Service in Symfony2?