| Total Complexity | 3 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | final class Version20190511162623 extends AbstractMigration |
||
| 14 | { |
||
| 15 | public function getDescription(): string |
||
| 18 | } |
||
| 19 | |||
| 20 | public function up(Schema $schema): void |
||
| 21 | { |
||
| 22 | $this->abortIf('postgresql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'postgresql\'.'); |
||
| 23 | |||
| 24 | $this->addSql('ALTER TABLE user_course RENAME TO npd_user_course'); |
||
| 25 | } |
||
| 26 | |||
| 27 | public function down(Schema $schema): void |
||
| 32 | } |
||
| 33 | } |
||
| 34 |