Total Complexity | 3 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | final class Version20191020074522 extends AbstractMigration |
||
13 | { |
||
14 | /** |
||
15 | * @throws SchemaException |
||
16 | */ |
||
17 | public function up(Schema $schema): void |
||
18 | { |
||
19 | $this->getOriginalUrlColumn($schema)->setLength(2048); |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * @throws SchemaException |
||
24 | */ |
||
25 | public function down(Schema $schema): void |
||
26 | { |
||
27 | $this->getOriginalUrlColumn($schema)->setLength(1024); |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * @throws SchemaException |
||
32 | */ |
||
33 | private function getOriginalUrlColumn(Schema $schema): Column |
||
36 | } |
||
37 | } |
||
38 |