PluginProbe
Independent Analytics – WordPress Analytics Plugin / 2.11.5
Independent Analytics – WordPress Analytics Plugin v2.11.5
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_21.php
Migration_21.php
25 lines 633 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 use IAWP\Known_Referrers;
6 use IAWP\Query;
7 /** @internal */
8 class Migration_21 extends \IAWP\Migrations\Migration
9 {
10 /**
11 * @var string
12 */
13 protected $database_version = '21';
14 /**
15 * @return void
16 */
17 protected function migrate() : void
18 {
19 global $wpdb;
20 $referrer_groups_table = Query::get_table_name(Query::REFERRER_GROUPS);
21 $wpdb->query("\n ALTER TABLE {$referrer_groups_table} MODIFY COLUMN type ENUM ('Search', 'Social', 'Referrer', 'Ad') NOT NULL;\n ");
22 Known_Referrers::replace_known_referrers_table();
23 }
24 }
25