Update   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A update_1_1_0() 0 10 1
1
<?php
2
3
namespace kujaff\VersionsBundle\Service\Install;
4
5
use kujaff\VersionsBundle\Model\Update as BaseUpdate;
6
use kujaff\VersionsBundle\Model\DoctrineHelper;
7
use kujaff\VersionsBundle\Model\BundleNameFromClassName;
8
use kujaff\VersionsBundle\Model\UpdateOneVersionOneMethod;
9
use Symfony\Component\DependencyInjection\ContainerAware;
10
11
class Update extends ContainerAware implements BaseUpdate
0 ignored issues
show
Deprecated Code introduced by
The class Symfony\Component\Depend...njection\ContainerAware has been deprecated with message: since version 2.8, to be removed in 3.0. Use the ContainerAwareTrait instead.

This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.

Loading history...
12
{
13
    use DoctrineHelper;
14
    use BundleNameFromClassName;
15
    use UpdateOneVersionOneMethod;
16
17
    /**
18
     * Update to 1.1.0
19
     */
20
    public function update_1_1_0()
21
    {
22
        $this->executeSQL('
23
            CREATE TABLE versions_patchs (
24
                bundle VARCHAR(100) NOT NULL,
25
                date DATETIME NOT NULL,
26
                PRIMARY KEY(bundle, date)
27
            ) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB'
28
        );
29
    }
30
}
31