Total Complexity | 5 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | final class Version20200409130946 extends AbstractMultiPlatformMigration |
||
15 | { |
||
16 | public function getDescription(): string |
||
19 | } |
||
20 | |||
21 | public function mySQLUp(Schema $schema): void |
||
22 | { |
||
23 | // this up() migration is auto-generated, please modify it to your needs |
||
24 | $this->abortIf('mysql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'mysql\'.'); |
||
25 | |||
26 | $this->addSql('ALTER TABLE u2f_keys CHANGE key_handle key_handle VARCHAR(128) NOT NULL'); |
||
27 | } |
||
28 | |||
29 | public function mySQLDown(Schema $schema): void |
||
30 | { |
||
31 | // this down() migration is auto-generated, please modify it to your needs |
||
32 | $this->abortIf('mysql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'mysql\'.'); |
||
33 | |||
34 | $this->addSql('ALTER TABLE u2f_keys CHANGE key_handle key_handle VARCHAR(64) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`'); |
||
35 | } |
||
36 | |||
37 | public function sqLiteUp(Schema $schema): void |
||
40 | } |
||
41 | |||
42 | public function sqLiteDown(Schema $schema): void |
||
47 |