OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums Forums OroPlatform OroPlatform – Programming Questions Oro migration installation order (foreign keys problem)

This topic contains 5 replies, has 4 voices, and was last updated by  pauloasterio 8 years, 1 month ago.

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

  • Creator
    Topic
  • #33581

    fdellutri
    Participant

    Hi,
    I’m developing a custom bundle that has a migration defined as following:

    When I try to do a oro:install, the installation process goes in error since my migration is loaded before the AddressBundle migration was loaded, then the oro_address table is not available when my migration runs:

    There is a way to set a migration installation order?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Author
    Replies
  • #33582

    Rodolfo
    Participant

    Did you try this?

    #33583

    fdellutri
    Participant

    Hi Rodolfo,
    Actually I need a way/method to suggest to Oro migration loader that my migration depends on the Oro\Bundle\AddressBundle\Migrations\Schema\OroAddressBundleInstaller, and such installer must run before mine.

    Thanks

    #33584

    Sergey
    Participant

    Hi, @fdellutri!

    in bundles.yml

    add your bundle after AddressBundle (priority more that 0)

    #33585

    fdellutri
    Participant

    Thank you! :-)

    #33586

    pauloasterio
    Participant

    very helpfull!

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

The forum ‘OroPlatform – Programming Questions’ is closed to new topics and replies.

Back to top