Test1BundleMigration11::up()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 7
rs 9.4285
cc 1
eloc 4
nc 1
nop 2
1
<?php
2
3
namespace RDV\Bundle\MigrationBundle\Tests\Unit\Fixture\TestPackage\Test1Bundle\Migrations\Schema\v1_1;
4
5
use Doctrine\DBAL\Schema\Schema;
6
use RDV\Bundle\MigrationBundle\Migration\Migration;
7
use RDV\Bundle\MigrationBundle\Migration\QueryBag;
8
9
class Test1BundleMigration11 implements Migration
10
{
11
    /**
12
     * @inheritdoc
13
     */
14
    public function up(Schema $schema, QueryBag $queries)
15
    {
16
        $table = $schema->createTable('test1table');
17
        $table->addColumn('id', 'integer');
18
19
        $queries->addQuery('ALTER TABLE TEST ADD COLUMN test_column INT NOT NULL');
20
    }
21
}
22