ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

Open-Source CRM software 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 pauloasterio 1 year, 1 month ago.

  • Creator
    Topic
  • #7350

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

    Rodolfo
    Participant

    Did you try this?

    #7354

    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

    #7355

    Sergey
    Oro Core

    Hi, @fdellutri!

    in bundles.yml

    add your bundle after AddressBundle (priority more that 0)

    #7369

    fdellutri
    Participant

    Thank you! 🙂

    #16440
    pauloasterio
    pauloasterio
    Participant

    very helpfull!

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

You must be logged in to reply to this topic.