Completed
Push — master ( 0bae06...931bd3 )
by
unknown
78:08
created

OroCRMActivityContactBundleInstaller   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getMigrationVersion() 0 4 1
A up() 0 4 1
1
<?php
2
3
namespace OroCRM\Bundle\ActivityContactBundle\Migrations\Schema;
4
5
use Doctrine\DBAL\Schema\Schema;
6
7
use Oro\Bundle\MigrationBundle\Migration\Installation;
8
use Oro\Bundle\MigrationBundle\Migration\QueryBag;
9
10
use OroCRM\Bundle\ActivityContactBundle\Migrations\Schema\v1_0\OroCRMActivityContactBundle;
11
12
class OroCRMActivityContactBundleInstaller implements Installation
13
{
14
    /**
15
     * {@inheritdoc}
16
     */
17
    public function getMigrationVersion()
18
    {
19
        return 'v1_0';
20
    }
21
22
    /**
23
     * {@inheritdoc}
24
     */
25
    public function up(Schema $schema, QueryBag $queries)
26
    {
27
        OroCRMActivityContactBundle::removeUserACFields($schema, $queries);
28
    }
29
}
30