/** * Apply all migrations * * @return bool */ function apply_migrations() { return run_symfony_command('doctrine:migrations:migrate', ['--no-interaction', '--env=prod', '--no-debug']); }
function apply_critical_migrations() { $criticalMigrations = array('20160225000000'); foreach ($criticalMigrations as $version) { run_symfony_command('doctrine:migrations:migrate', array('--no-interaction', '--env=prod', '--no-debug', $version)); } }