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

MakeRichAccountExtendDescription::up()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 1
Metric Value
c 2
b 0
f 1
dl 0
loc 13
rs 9.4285
cc 1
eloc 7
nc 1
nop 2
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