ssossossossosso

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 1 year, 11 months ago.

  • Creator
    Topic
  • #28101

    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
  • #28102

    Rodolfo
    Participant

    Did you try this?

    #28103

    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

    #28104

    Sergey
    Participant

    Hi, @fdellutri!

    in bundles.yml

    add your bundle after AddressBundle (priority more that 0)

    #28105

    fdellutri
    Participant

    Thank you! 🙂

    #28106

    pauloasterio
    Participant

    very helpfull!

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

You must be logged in to reply to this topic.