OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums Forums OroCommerce Migrations custom priority

This topic contains 2 replies, has 2 voices, and was last updated by  niceteg 8 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #41027

    niceteg
    Participant

    Hello, everyone!

    When I try to reinstall OroCommerce, I faced the problem of sequential migration, my custom migrations are run before the system migrations and as a result, I get an error.

    I tried to set the priority in the bundles.yml

    But it also did not help.

    To solve this problem, I have to start the migration without this Bundle (php /var/www/bin/console oro:migration:load –force –exclude=’MdmCustomerBundle’) first and then the installation (php /var/www/bin/console oro:install) which all migration goes fine!

    Thanks!

    How can I start the installation so that the migrations run all in the right order and custom ones was in the end?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #41069
    Andrey Yatsenko
    Andrey Yatsenko
    Moderator

    The migration priority is correct. There are always migrations that are run after all to clear up and warm up all the caches.

    In the schema migration, you must not work with the doctrine or entities itself, it should know only about the database table structure.

    #41095

    niceteg
    Participant

    Thanks for reply!
    I’ll clarify a little.

    How to start the migration (on the new system with empty DB) during installation?
    That includes this:

    I do not exclude that we are looking in the wrong direction ;)

Viewing 2 replies - 1 through 2 (of 2 total)

The forum ‘OroCommerce’ is closed to new topics and replies.

You will be redirected to [title]. Would you like to continue?

Yes No