Completed
Push — master ( cd8605...3b7290 )
by
unknown
09:46
created

MakeRichAccountExtendDescription   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 1
c 2
b 0
f 1
lcom 0
cbo 3
dl 0
loc 19
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A up() 0 13 1
1
<?php
2
3
namespace OroCRM\Bundle\AccountBundle\Migrations\Schema\v1_11;
4
5
use Doctrine\DBAL\Schema\Schema;
6
7
use Oro\Bundle\EntityExtendBundle\Migration\OroOptions;
8
use Oro\Bundle\MigrationBundle\Migration\Migration;
9
use Oro\Bundle\MigrationBundle\Migration\QueryBag;
10
11
class MakeRichAccountExtendDescription implements Migration
12
{
13
    /**
14
     * {@inheritdoc}
15
     */
16
    public function up(Schema $schema, QueryBag $queries)
17
    {
18
        $table = $schema->getTable('orocrm_account');
19
        $column = $table->getColumn('extend_description');
20
        $column->setOptions(
21
            [
22
                OroOptions::KEY => [
23
                    'form' => ['type' => 'oro_resizeable_rich_text'],
24
                    'view' => ['type' => 'html']
25
                ]
26
            ]
27
        );
28
    }
29
}
30