Basic Doctrine Migrations configuration update from 2.x to 3.0

Published on 2020-07-18 • Modified on 2020-07-18

In this snippet, I will show you the changes I add to make on my configuration when I upgraded Doctrine Migrations from v2.x to v3.0. The old setup is on the top while the new setup is at the bottom. I think this is a typical setup so you may have to do the same thing. If you have a more complicated one, just below, you have the link to the Symfony documentation and a link to the blog post of jschme with more detailed explanations.


#doctrine_migrations: # V2
#    dir_name: "%kernel.project_dir%/src/Migrations"
#    namespace: App\Migrations
#    table_name: migration_versions

doctrine_migrations: # V3
    migrations_paths:
        'App\Migrations': "%kernel.project_dir%/src/Migrations"
    storage:
        table_storage:
            table_name: 'migration_versions'

 More on Stackoverflow   Read the doc  More on the web  Random snippet

  Work with me!


Call to action

Did you like this post? You can help me back in several ways: (use the "reply" link on the right to comment or to contact me )

Thank you for reading! And see you soon on Strangebuzz! 😉

COil