Migration_39.php
| 1 | <?php |
| 2 | |
| 3 | namespace IAWP\Migrations; |
| 4 | |
| 5 | /** @internal */ |
| 6 | class Migration_39 extends \IAWP\Migrations\Step_Migration |
| 7 | { |
| 8 | use \IAWP\Migrations\Creates_Reports; |
| 9 | /** |
| 10 | * @return int |
| 11 | */ |
| 12 | protected function database_version() : int |
| 13 | { |
| 14 | return 39; |
| 15 | } |
| 16 | /** |
| 17 | * @return array |
| 18 | */ |
| 19 | protected function queries() : array |
| 20 | { |
| 21 | return [$this->increase_size_of_cached_url(), $this->increase_size_of_not_found_url()]; |
| 22 | } |
| 23 | private function increase_size_of_cached_url() : string |
| 24 | { |
| 25 | return "\n ALTER TABLE {$this->tables::resources()} MODIFY COLUMN cached_url VARCHAR(2083);\n "; |
| 26 | } |
| 27 | private function increase_size_of_not_found_url() : string |
| 28 | { |
| 29 | return "\n ALTER TABLE {$this->tables::resources()} MODIFY COLUMN not_found_url VARCHAR(2083);\n "; |
| 30 | } |
| 31 | } |
| 32 |