This topic contains 4 replies, has 3 voices, and was last updated by jaimemanuelroman 6 years, 9 months ago.
- Topic
Hello everyone, I need your help: on a first migration I put this code:
123456789101112131415161718192021222324252627282930public function up(Schema $schema, QueryBag $queries){// TODO: Implement up() method.$table = $schema->getTable('orocrm_account');$table->addColumn('SSN', 'string', ['oro_options' => ['extend' => ['owner' => ExtendScope::OWNER_CUSTOM],'datagrid' => ['is_visible' => false],'merge' => ['display' => false],'dataaudit' => ['auditable' => false],'entity' => array('label' => 'SSN'),],]);$table->addColumn('fid','string',['oro_options' => ['extend' => ['owner' => ExtendScope::OWNER_CUSTOM],'datagrid' => array('is_visible' => false),'merge' => ['display' => false],'dataaudit' => ['auditable' => false],'entity' => array('label' => 'FId')]]);}When I run oro: migration:load –force. Everything works fine, the fields are added in the database and in the views.
In a new migration I put the following code.
1234567891011121314151617181920212223242526272829303132333435public function up(Schema $schema, QueryBag $queries){// TODO: Implement up() method.$table = $schema->getTable('orocrm_account');$table->dropColumn('SSN');$table->dropColumn('fid');$table = $schema->getTable('orocrm_contact');$table->addColumn('SSN', 'string', ['oro_options' => ['extend' => ['owner' => ExtendScope::OWNER_CUSTOM],'datagrid' => ['is_visible' => false],'merge' => ['display' => false],'dataaudit' => ['auditable' => false],'entity' => array('label' => 'SSN'),],]);$table->addColumn('fid','string',['oro_options' => ['extend' => ['owner' => ExtendScope::OWNER_CUSTOM],'datagrid' => array('is_visible' => false),'merge' => ['display' => false],'dataaudit' => ['auditable' => false],'entity' => array('label' => 'FId')]]);}When i run again oro: migration:load –force, changes are applied to the database, that is, the table orocrm_account removes the fid and SSN fields and the orocrm_contact table adds the fid and SSN fields, but the views are not updated, how can I make the changes Of the database are replicated in the views ?. Thank you very much.
The forum ‘OroCRM – How do I? Questions’ is closed to new topics and replies.