This topic contains 3 replies, has 2 voices, and was last updated by alendo 9 years, 3 months ago.
- Topic
I created a migration to add some fields to oro_organization:
12345678910111213141516171819202122232425262728public function up(Schema $schema, QueryBag $queries){$options = ['oro_options' => ['extend' => ['owner' => ExtendScope::OWNER_CUSTOM],'datagrid' => ['is_visible' => false],'merge' => ['display' => true],'dataaudit' => ['auditable' => true]]];$table = $schema->getTable('oro_organization');$table->addColumn('educa_codice_organizzatore', 'string', $options);$table->addColumn('educa_codice_accreditatore', 'string', $options);$table->addColumn('educa_codice_fiscale', 'string', $options);$table->addColumn('educa_piva', 'integer', $options);$table->addColumn('educa_address', 'text', $options);$this->attachmentExtension->addImageRelation($schema,'oro_organization', // entity table, e.g. oro_user, orocrm_contact etc.'logo', // field name[], //additional options for relation7, // max allowed file size in megabytes, can be omitted, by default 1 Mb100, // thumbnail width in pixels, can be omitted, by default 32100 // thumbnail height in pixels, can be omitted, by default 32);After migration I can see the new fields in organization form, but not the file field.
The forum ‘OroCRM – Programming Questions’ is closed to new topics and replies.