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
|
|
|
|