This topic contains 3 replies, has 2 voices, and was last updated by fred33 6 years, 8 months ago.
- Topic
Hi,
I have done migration of existing entity, calendarBundle and AccountBundle
I have two problems
First: the migration of AccountBundle doesn’t execute with oro:migration:load –force
CL\Bundle\AccountExtendBundle\Migrations\Schema\v1_16123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102<?phpnamespace CL\Bundle\AccountExtendBundle\Migrations\Schema\v1_16;use Doctrine\DBAL\Schema\Schema;use Oro\Bundle\EntityExtendBundle\EntityConfig\ExtendScope;use Oro\Bundle\MigrationBundle\Migration\Migration;use Oro\Bundle\MigrationBundle\Migration\QueryBag;class OroAccountBundle implements Migration{/*** {@inheritdoc}*/public function up(Schema $schema, QueryBag $queries){$table = $schema->getTable('orocrm_account');$table->addColumn('adr1','string',['oro_options' => ['extend' =>['is_extend' => true, 'owner' => ExtendScope::OWNER_CUSTOM],'datagrid' =>['is_visible' => true],]]);$table->addColumn('adr2','string',['oro_options' => ['extend' =>['is_extend' => true, 'owner' => ExtendScope::OWNER_CUSTOM],'datagrid' =>['is_visible' => true],]]);$table->addColumn('bloclt','string',['oro_options' => ['extend' =>['is_extend' => true, 'owner' => ExtendScope::OWNER_CUSTOM],'datagrid' =>['is_visible' => true],]]);$table->addColumn('CodeCent','string',['oro_options' => ['extend' =>['is_extend' => true, 'owner' => ExtendScope::OWNER_CUSTOM],'datagrid' =>['is_visible' => true],]]);$table->addColumn('Codeclient','string',['oro_options' => ['extend' =>['is_extend' => true, 'owner' => ExtendScope::OWNER_CUSTOM],'datagrid' =>['is_visible' => true],]]);$table->addColumn('cp','string',['oro_options' => ['extend' =>['is_extend' => true, 'owner' => ExtendScope::OWNER_CUSTOM],'datagrid' =>['is_visible' => true],]]);$table->addColumn('pays','string',['oro_options' => ['extend' =>['is_extend' => true, 'owner' => ExtendScope::OWNER_CUSTOM],'datagrid' =>['is_visible' => true],]]);$table->addColumn('ville','string',['oro_options' => ['extend' =>['is_extend' => true, 'owner' => ExtendScope::OWNER_CUSTOM],'datagrid' =>['is_visible' => true],]]);}}second: The migration of CalendarBundle works well but the new field doesn’t appear in the entity in GUI
I can see my field in the table in PhpMyAdminAnybody have this problem ?
The forum ‘OroCRM – Installation/Technical Issues or Problems’ is closed to new topics and replies.