PluginProbe
Independent Analytics – WordPress Analytics Plugin / 2.11.2
Independent Analytics – WordPress Analytics Plugin v2.11.2
2.15.5 2.15.4 2.15.3 2.15.2 2.15.1 2.15.0 2.14.10 trunk 1.1 1.10 1.10.1 1.11 1.12 1.13 1.14 1.15 1.16 1.17 1.17.1 1.17.2 1.17.3 1.17.4 1.18 1.18.1 1.19.0 All 120 releases
independent-analytics / IAWP / Migrations / Migration_39.php
Migration_39.php
32 lines 853 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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