| Total Complexity | 4 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | final class Version20210603150318 extends AbstractMigration |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @noinspection PhpMissingParentCallCommonInspection |
||
| 18 | */ |
||
| 19 | public function getDescription(): string |
||
| 20 | { |
||
| 21 | return 'Rename `master` => `main`'; |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @noinspection PhpMissingParentCallCommonInspection |
||
| 26 | */ |
||
| 27 | public function isTransactional(): bool |
||
| 28 | { |
||
| 29 | return false; |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @throws Exception |
||
| 34 | */ |
||
| 35 | public function up(Schema $schema): void |
||
| 36 | { |
||
| 37 | // this up() migration is auto-generated, please modify it to your needs |
||
| 38 | $this->abortIf( |
||
| 39 | $this->connection->getDatabasePlatform()->getName() !== 'mysql', |
||
| 40 | 'Migration can only be executed safely on \'mysql\'.' |
||
| 41 | ); |
||
| 42 | |||
| 43 | $this->addSql('ALTER TABLE log_request CHANGE is_master_request is_main_request TINYINT(1) NOT NULL'); |
||
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @noinspection PhpMissingParentCallCommonInspection |
||
| 48 | * |
||
| 49 | * @throws Exception |
||
| 50 | */ |
||
| 51 | public function down(Schema $schema): void |
||
| 60 | } |
||
| 61 | } |
||
| 62 |