Completed
Push — master ( 7b2583...39a295 )
by Serhii
17s queued 12s
created

Version20150531150000   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 37
ccs 0
cts 25
cp 0
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 3

2 Methods

Rating   Name   Duplication   Size   Complexity  
A up() 0 30 1
A down() 0 3 1
1
<?php
2
3
namespace Application\Migrations;
4
5
use Doctrine\DBAL\Schema\Schema;
6
use Doctrine\DBAL\Types\StringType;
7
use Doctrine\Migrations\AbstractMigration;
8
9
class Version20150531150000 extends AbstractMigration
10
{
11
    public function up(Schema $schema) : void
12
    {
13
        $schema->getTable('employees')->addColumn('createdBy', 'string', ['length' => 255, 'default' => NULL, 'notnull' => false]);
14
        $schema->getTable('employees')->addColumn('updatedBy', 'string', ['length' => 255, 'default' => NULL, 'notnull' => false]);
15
        $schema->getTable('employees')->addColumn('deletedBy', 'string', ['length' => 255, 'default' => NULL, 'notnull' => false]);
16
17
        $schema->getTable('history')->addColumn('createdBy', 'string', ['length' => 255, 'default' => NULL, 'notnull' => false]);
18
        $schema->getTable('history')->addColumn('updatedBy', 'string', ['length' => 255, 'default' => NULL, 'notnull' => false]);
19
        $schema->getTable('history')->addColumn('deletedBy', 'string', ['length' => 255, 'default' => NULL, 'notnull' => false]);
20
21
        $schema->getTable('performances')->addColumn('createdBy', 'string', ['length' => 255, 'default' => NULL, 'notnull' => false]);
22
        $schema->getTable('performances')->addColumn('updatedBy', 'string', ['length' => 255, 'default' => NULL, 'notnull' => false]);
23
        $schema->getTable('performances')->addColumn('deletedBy', 'string', ['length' => 255, 'default' => NULL, 'notnull' => false]);
24
25
        $schema->getTable('performance_schedule')->addColumn('createdBy', 'string', ['length' => 255, 'default' => NULL, 'notnull' => false]);
26
        $schema->getTable('performance_schedule')->addColumn('updatedBy', 'string', ['length' => 255, 'default' => NULL, 'notnull' => false]);
27
        $schema->getTable('performance_schedule')->addColumn('deletedBy', 'string', ['length' => 255, 'default' => NULL, 'notnull' => false]);
28
29
        $schema->getTable('posts')->addColumn('createdBy', 'string', ['length' => 255, 'default' => NULL, 'notnull' => false]);
30
        $schema->getTable('posts')->addColumn('updatedBy', 'string', ['length' => 255, 'default' => NULL, 'notnull' => false]);
31
        $schema->getTable('posts')->addColumn('deletedBy', 'string', ['length' => 255, 'default' => NULL, 'notnull' => false]);
32
33
        $schema->getTable('roles')->addColumn('createdBy', 'string', ['length' => 255, 'default' => NULL, 'notnull' => false]);
34
        $schema->getTable('roles')->addColumn('updatedBy', 'string', ['length' => 255, 'default' => NULL, 'notnull' => false]);
35
        $schema->getTable('roles')->addColumn('deletedBy', 'string', ['length' => 255, 'default' => NULL, 'notnull' => false]);
36
37
        $schema->getTable('tags')->addColumn('createdBy', 'string', ['length' => 255, 'default' => NULL, 'notnull' => false]);
38
        $schema->getTable('tags')->addColumn('updatedBy', 'string', ['length' => 255, 'default' => NULL, 'notnull' => false]);
39
        $schema->getTable('tags')->addColumn('deletedBy', 'string', ['length' => 255, 'default' => NULL, 'notnull' => false]);
40
    }
41
42
    public function down(Schema $schema) : void
43
    {
44
    }
45
}
46