Test1BundleInstallation::getMigrationVersion()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace RDV\Bundle\MigrationBundle\Tests\Unit\Fixture\TestPackage\Test1Bundle\Migrations\Schema;
4
5
use Doctrine\DBAL\Schema\Schema;
6
use RDV\Bundle\MigrationBundle\Migration\Installation;
7
use RDV\Bundle\MigrationBundle\Migration\QueryBag;
8
9
class Test1BundleInstallation implements Installation
10
{
11
    /**
12
     * @inheritdoc
13
     */
14
    public function getMigrationVersion()
15
    {
16
        return "v1_0";
17
    }
18
19
    /**
20
     * @inheritdoc
21
     */
22
    public function up(Schema $schema, QueryBag $queries)
23
    {
24
        $queries->addQuery('CREATE TABLE TEST (id INT AUTO_INCREMENT NOT NULL)');
25
    }
26
}
27