This topic contains 5 replies, has 4 voices, and was last updated by pauloasterio 8 years, 1 month ago.
- Topic
Hi,
I’m developing a custom bundle that has a migration defined as following:1234567891011121314151617class MyInstaller implements Installation{public function up(Schema $schema, QueryBag $queries){<...some code...>$table = $schema->getTable('person');$table->addForeignKeyConstraint($schema->getTable('oro_address'),['billingAddress_id'],['id'],['onDelete' => null, 'onUpdate' => null]);}}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:12345678910111213141516171819Setting up database.Process migrations...> Oro\Bundle\MigrationBundle\Migration\CreateMigrationTableMigration> Oro\Bundle\OrganizationBundle\Migrations\Schema\OroOrganizationBundleInstaller> Oro\Bundle\SecurityBundle\Migrations\Schema\v1_0\OroSecurityBundle> Oro\Bundle\EmailBundle\Migrations\Schema\OroEmailBundleInstaller> Oro\Bundle\EmailBundle\Migrations\Schema\v1_4\OroEmailBundle> Oro\Bundle\AttachmentBundle\Migrations\Schema\OroAttachmentBundleInstaller> Oro\Bundle\UserBundle\Migrations\Schema\OroUserBundleInstaller> Oro\Bundle\EntityConfigBundle\Migrations\Schema\OroEntityConfigBundleInstaller> Oro\Bundle\EntityConfigBundle\Migrations\Schema\v1_3\OroEntityConfigBundle> Oro\Bundle\EntityExtendBundle\Migrations\Schema\OroEntityExtendBundleInstaller> Oro\Bundle\IntegrationBundle\Migrations\Schema\OroIntegrationBundleInstaller> MyBundle\Migrations\Schema\MyInstaller[Doctrine\DBAL\Schema\SchemaException]There is no table with name 'project.oro_address' in the schema.There is a way to set a migration installation order?
The forum ‘OroPlatform – Programming Questions’ is closed to new topics and replies.