Update::update_1_1_0()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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