Esempio n. 1
0
/**
 * Apply all migrations
 *
 * @return bool
 */
function apply_migrations()
{
    return run_symfony_command('doctrine:migrations:migrate', ['--no-interaction', '--env=prod', '--no-debug']);
}
Esempio n. 2
0
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));
    }
}