Completed
Push — master ( ab5f90...88258b )
by
unknown
41:27
created

OroCRMSalesBundle   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A up() 0 15 1
1
<?php
2
3
namespace OroCRM\Bundle\SalesBundle\Migrations\Schema\v1_23;
4
5
use Doctrine\DBAL\Schema\Schema;
6
7
use Oro\Bundle\MigrationBundle\Migration\Migration;
8
use Oro\Bundle\MigrationBundle\Migration\QueryBag;
9
10
class OroCRMSalesBundle implements Migration
11
{
12
    /**
13
     * {@inheritdoc}
14
     */
15
    public function up(Schema $schema, QueryBag $queries)
16
    {
17
        $queries->addQuery(new UpdateWorkflowItemStepData());
18
19
        // applies only if config has old active workflow
20
        $queries->addQuery(
21
            new UpdateEntityConfigEntityValueQuery(
22
                'OroCRM\Bundle\SalesBundle\Entity\Opportunity',
23
                'workflow',
24
                'active_workflow',
25
                'opportunity_flow',
26
                'b2b_flow_sales'
27
            )
28
        );
29
    }
30
}
31