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_41.php
Migration_41.php
27 lines 743 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_41 extends \IAWP\Migrations\Step_Migration
7 {
8 /**
9 * @return int
10 */
11 protected function database_version() : int
12 {
13 return 41;
14 }
15 /**
16 * @return array
17 */
18 protected function queries() : array
19 {
20 return [$this->add_pmpro_to_orders_table()];
21 }
22 private function add_pmpro_to_orders_table() : string
23 {
24 return "\n ALTER TABLE {$this->tables::orders()} \n ADD COLUMN pmpro_order_id BIGINT(20) UNSIGNED AFTER edd_order_status,\n ADD COLUMN pmpro_order_status VARCHAR(64) AFTER pmpro_order_id,\n ADD UNIQUE INDEX (pmpro_order_id);\n ";
25 }
26 }
27