Skip to content

Commit b37ec65

Browse files
committed
No need to test old migration scripts.
1 parent 7200cf2 commit b37ec65

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/Admin/Upgrades.php

+18
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
22
/**
33
* Plausible Analytics | Upgrades
4+
*
45
* @since 1.3.0
56
* @package WordPress
67
* @subpackage Plausible Analytics
@@ -15,11 +16,13 @@
1516

1617
/**
1718
* Class Upgrades
19+
*
1820
* @since 1.3.0
1921
*/
2022
class Upgrades {
2123
/**
2224
* Constructor for Upgrades.
25+
*
2326
* @since 1.3.0
2427
* @access public
2528
* @return void
@@ -31,9 +34,12 @@ public function __construct() {
3134
/**
3235
* Register routines for upgrades.
3336
* This is intended for automatic upgrade routines having less resource intensive tasks.
37+
*
3438
* @since 1.3.0
3539
* @access public
3640
* @return void
41+
*
42+
* @codeCoverageIgnore
3743
*/
3844
public function run() {
3945
$plausible_analytics_version = get_option( 'plausible_analytics_version' );
@@ -73,9 +79,11 @@ public function run() {
7379
/**
7480
* Upgrade routine for 1.2.5
7581
* Cleans Custom Domain related options from database, as it was removed in this version.
82+
*
7683
* @since 1.2.5
7784
* @access public
7885
* @return void
86+
* @codeCoverageIgnore
7987
*/
8088
public function upgrade_to_125() {
8189
$old_settings = Helpers::get_settings();
@@ -107,8 +115,10 @@ public function upgrade_to_125() {
107115

108116
/**
109117
* Get rid of the previous "example.com" default for self_hosted_domain.
118+
*
110119
* @since 1.2.6
111120
* @return void
121+
* @codeCoverageIgnore
112122
*/
113123
public function upgrade_to_126() {
114124
$old_settings = Helpers::get_settings();
@@ -126,7 +136,9 @@ public function upgrade_to_126() {
126136
/**
127137
* Upgrade to 1.3.1
128138
* - Enables 404 pages tracking by default.
139+
*
129140
* @return void
141+
* @codeCoverageIgnore
130142
*/
131143
public function upgrade_to_131() {
132144
$settings = Helpers::get_settings();
@@ -143,8 +155,10 @@ public function upgrade_to_131() {
143155
/**
144156
* Upgrade to 1.3.2
145157
* - Updates the Proxy Resource, Cache URL to be protocol relative.
158+
*
146159
* @return void
147160
* @throws Exception
161+
* @codeCoverageIgnore
148162
*/
149163
private function upgrade_to_132() {
150164
$proxy_resources = Helpers::get_proxy_resources();
@@ -158,7 +172,9 @@ private function upgrade_to_132() {
158172

159173
/**
160174
* Cleans the settings of the old, unneeded sub-arrays for settings.
175+
*
161176
* @return void
177+
* @codeCoverageIgnore
162178
*/
163179
private function upgrade_to_200() {
164180
$settings = Helpers::get_settings();
@@ -217,7 +233,9 @@ private function upgrade_to_200() {
217233

218234
/**
219235
* Makes sure the View Stats option is enabled for users that previously set a shared link.
236+
*
220237
* @return void
238+
* @codeCoverageIgnore
221239
*/
222240
private function upgrade_to_203() {
223241
$settings = Helpers::get_settings();

0 commit comments

Comments
 (0)