|
1
|
|
|
<?php declare(strict_types=1); |
|
2
|
|
|
|
|
3
|
|
|
namespace App\Migrations; |
|
4
|
|
|
|
|
5
|
|
|
use Doctrine\DBAL\Schema\Schema; |
|
6
|
|
|
use Doctrine\Migrations\AbstractMigration; |
|
7
|
|
|
|
|
8
|
|
|
/** |
|
9
|
|
|
* Auto-generated Migration: Please modify to your needs! |
|
10
|
|
|
*/ |
|
11
|
|
|
final class Version20180610173538 extends AbstractMigration |
|
12
|
|
|
{ |
|
13
|
|
|
public function up(Schema $schema) : void |
|
14
|
|
|
{ |
|
15
|
|
|
// this up() migration is auto-generated, please modify it to your needs |
|
16
|
|
|
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); |
|
17
|
|
|
|
|
18
|
|
|
$this->addSql('RENAME TABLE developtech_agility__beta_test_users TO project__beta_testers, |
|
19
|
|
|
developtech_agility__beta_tests TO project__beta_tests, |
|
20
|
|
|
developtech_agility__features TO project__features, |
|
21
|
|
|
developtech_agility__feedbacks TO project__feedbacks, |
|
22
|
|
|
developtech_agility__jobs TO project__jobs, |
|
23
|
|
|
developtech_agility__projects TO project__projects, |
|
24
|
|
|
developtech_agility__repositories__repository TO project__repositories__repository, |
|
25
|
|
|
developtech_agility__repositories__github TO project__repositories__github, |
|
26
|
|
|
projects__news TO project__news' |
|
27
|
|
|
); |
|
28
|
|
|
|
|
29
|
|
|
} |
|
30
|
|
|
|
|
31
|
|
|
public function down(Schema $schema) : void |
|
32
|
|
|
{ |
|
33
|
|
|
// this down() migration is auto-generated, please modify it to your needs |
|
34
|
|
|
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); |
|
35
|
|
|
|
|
36
|
|
|
$this->addSql('RENAME TABLE developtech_agility__beta_test_users TO project__beta_testers, |
|
37
|
|
|
project__beta_tests TO developtech_agility__beta_tests, |
|
38
|
|
|
project__features TO developtech_agility__features, |
|
39
|
|
|
project__feedbacks TO developtech_agility__feedbacks, |
|
40
|
|
|
project__jobs TO developtech_agility__jobs, |
|
41
|
|
|
project__projects TO developtech_agility__projects, |
|
42
|
|
|
project__repositories__repository TO developtech_agility__repositories__repository, |
|
43
|
|
|
project__repositories__github TO developtech_agility__repositories__github, |
|
44
|
|
|
project__news TO projects__news' |
|
45
|
|
|
); |
|
46
|
|
|
} |
|
47
|
|
|
} |
|
48
|
|
|
|