Before updating to 1.2.x add to migration table the sequence
column with type interger
composer reqire saelker/migrations-bundle
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Saelker\MigrationsBundle\SaelkerMigrationsBundle(),
);
}
# Saelker Migrations Directories
saelker_migrations:
directories:
- '%kernel.project_dir%/src/AppBundle/Migrations'
...
class SaelkerMigrationsBundle extends Bundle
{
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(new MigrationsCompilerPass(__DIR__ . "/Migrations"));
}
}
bin/console saelker:migrations:migrate
bin/console saelker:migrations:generate
# Saelker Migrations Directories
saelker_migrations:
clean_depth: 3
directory_separator: '/'
use_camel_case: false
ignore_errors: false