|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace DoctrineMigrations; |
|
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 getDescription() : string |
|
12
|
|
|
{ |
|
13
|
|
|
return ''; |
|
14
|
|
|
} |
|
15
|
|
|
|
|
16
|
|
|
public function up(Schema $schema) : void |
|
17
|
|
|
{ |
|
18
|
|
|
$schema->getTable('employees')->addColumn('createdBy', 'string', ['length' => 255, 'default' => NULL, 'notnull' => false]); |
|
19
|
|
|
$schema->getTable('employees')->addColumn('updatedBy', 'string', ['length' => 255, 'default' => NULL, 'notnull' => false]); |
|
20
|
|
|
$schema->getTable('employees')->addColumn('deletedBy', 'string', ['length' => 255, 'default' => NULL, 'notnull' => false]); |
|
21
|
|
|
|
|
22
|
|
|
$schema->getTable('history')->addColumn('createdBy', 'string', ['length' => 255, 'default' => NULL, 'notnull' => false]); |
|
23
|
|
|
$schema->getTable('history')->addColumn('updatedBy', 'string', ['length' => 255, 'default' => NULL, 'notnull' => false]); |
|
24
|
|
|
$schema->getTable('history')->addColumn('deletedBy', 'string', ['length' => 255, 'default' => NULL, 'notnull' => false]); |
|
25
|
|
|
|
|
26
|
|
|
$schema->getTable('performances')->addColumn('createdBy', 'string', ['length' => 255, 'default' => NULL, 'notnull' => false]); |
|
27
|
|
|
$schema->getTable('performances')->addColumn('updatedBy', 'string', ['length' => 255, 'default' => NULL, 'notnull' => false]); |
|
28
|
|
|
$schema->getTable('performances')->addColumn('deletedBy', 'string', ['length' => 255, 'default' => NULL, 'notnull' => false]); |
|
29
|
|
|
|
|
30
|
|
|
$schema->getTable('performance_schedule')->addColumn('createdBy', 'string', ['length' => 255, 'default' => NULL, 'notnull' => false]); |
|
31
|
|
|
$schema->getTable('performance_schedule')->addColumn('updatedBy', 'string', ['length' => 255, 'default' => NULL, 'notnull' => false]); |
|
32
|
|
|
$schema->getTable('performance_schedule')->addColumn('deletedBy', 'string', ['length' => 255, 'default' => NULL, 'notnull' => false]); |
|
33
|
|
|
|
|
34
|
|
|
$schema->getTable('posts')->addColumn('createdBy', 'string', ['length' => 255, 'default' => NULL, 'notnull' => false]); |
|
35
|
|
|
$schema->getTable('posts')->addColumn('updatedBy', 'string', ['length' => 255, 'default' => NULL, 'notnull' => false]); |
|
36
|
|
|
$schema->getTable('posts')->addColumn('deletedBy', 'string', ['length' => 255, 'default' => NULL, 'notnull' => false]); |
|
37
|
|
|
|
|
38
|
|
|
$schema->getTable('roles')->addColumn('createdBy', 'string', ['length' => 255, 'default' => NULL, 'notnull' => false]); |
|
39
|
|
|
$schema->getTable('roles')->addColumn('updatedBy', 'string', ['length' => 255, 'default' => NULL, 'notnull' => false]); |
|
40
|
|
|
$schema->getTable('roles')->addColumn('deletedBy', 'string', ['length' => 255, 'default' => NULL, 'notnull' => false]); |
|
41
|
|
|
|
|
42
|
|
|
$schema->getTable('tags')->addColumn('createdBy', 'string', ['length' => 255, 'default' => NULL, 'notnull' => false]); |
|
43
|
|
|
$schema->getTable('tags')->addColumn('updatedBy', 'string', ['length' => 255, 'default' => NULL, 'notnull' => false]); |
|
44
|
|
|
$schema->getTable('tags')->addColumn('deletedBy', 'string', ['length' => 255, 'default' => NULL, 'notnull' => false]); |
|
45
|
|
|
} |
|
46
|
|
|
|
|
47
|
|
|
public function down(Schema $schema) : void |
|
48
|
|
|
{ |
|
49
|
|
|
} |
|
50
|
|
|
} |
|
51
|
|
|
|