Skip to content

Latest commit

 

History

History
71 lines (51 loc) · 1.19 KB

UPGRADE.md

File metadata and controls

71 lines (51 loc) · 1.19 KB

Upgrade

From 2.x to 3.0.0

  • The configuration for the migration namespace and directory changed as follows:

Before

doctrine_migrations:
    dir_name: '%kernel.project_dir%/src/Migrations'
    namespace: DoctrineMigrations

After

doctrine_migrations:
    migrations_paths:
        'DoctrineMigrations': '%kernel.project_dir%/src/Migrations'
  • The configuration for the metadata table definition changed as follows:

Before

doctrine_migrations:
    table_name: 'migration_versions'
    column_name: 'version'
    column_length: 14
    executed_at_column_name: 'executed_at'

After

doctrine_migrations:
    storage:
        table_storage:
            table_name: 'migration_versions'
            version_column_name: 'version'
            version_column_length: 1024
            executed_at_column_name: 'executed_at'
  • The migration name has been dropped:

Before

doctrine_migrations:
    name: 'Application Migrations'

After

The parameter name has been dropped.

  • Custom migration templates:

Before

final class Version<version> extends AbstractMigration

After

final class <className> extends AbstractMigration