Completed
Push — master ( 4859e1...c3d3e1 )
by
unknown
11:17
created

OroCRMCaseBundle::up()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 11
rs 9.4285
cc 1
eloc 5
nc 1
nop 2
1
<?php
2
3
namespace OroCRM\Bundle\CaseBundle\Migrations\Schema\v1_9;
4
5
use Doctrine\DBAL\Schema\Schema;
6
7
use Oro\Bundle\MigrationBundle\Migration\Migration;
8
use Oro\Bundle\MigrationBundle\Migration\ParametrizedSqlMigrationQuery;
9
use Oro\Bundle\MigrationBundle\Migration\QueryBag;
10
11
class OroCRMCaseBundle implements Migration
12
{
13
    /**
14
     * {@inheritdoc}
15
     */
16
    public function up(Schema $schema, QueryBag $queries)
17
    {
18
        $queries->addPreQuery(
19
            new ParametrizedSqlMigrationQuery(
20
                'DELETE FROM oro_entity_config WHERE class_name = :class_name',
21
                [
22
                    'class_name'  => 'OroCRM\Bundle\CaseBundle\Entity\CaseMailboxProcessSettings',
23
                ]
24
            )
25
        );
26
    }
27
}
28