🐘 0.2.10.php (Php) 2.4 KB 2016-05-21
PHP module for 0.2.10
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Filesystem;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_0_2_10 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
return array(
'CREATE TABLE `' . Common::prefixTable('option') . '` (
idoption BIGINT NOT NULL AUTO_INCREMENT ,
option_name VARCHAR( 64 ) NOT NULL ,
option_value LONGTEXT NOT NULL ,
PRIMARY KEY ( idoption , option_name )
)' => 1050,
// 0.1.7 [463]
'ALTER TABLE `' . Common::prefixTable('log_visit') . '`
CHANGE `location_provider` `location_provider` VARCHAR( 100 ) DEFAULT NULL' => 1054,
// 0.1.7 [470]
'ALTER TABLE `' . Common::prefixTable('logger_api_call') . '`
CHANGE `parameter_names_default_values` `parameter_names_default_values` TEXT,
CHANGE `parameter_values` `parameter_values` TEXT,
CHANGE `returned_value` `returned_value` TEXT' => array(1054, 1146),
'ALTER TABLE `' . Common::prefixTable('logger_error') . '`
CHANGE `message` `message` TEXT' => array(1054, 1146),
'ALTER TABLE `' . Common::prefixTable('logger_exception') . '`
CHANGE `message` `message` TEXT' => array(1054, 1146),
'ALTER TABLE `' . Common::prefixTable('logger_message') . '`
CHANGE `message` `message` TEXT' => 1054,
// 0.2.2 [489]
'ALTER TABLE `' . Common::prefixTable('site') . '`
CHANGE `feedburnerName` `feedburnerName` VARCHAR( 100 ) DEFAULT NULL' => 1054,
);
... [truncated, 19 more lines] ...
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "0.2.10.php",
"description": "PHP module for 0.2.10",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "2.4 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/0.2.10.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 0.2.12.php (Php) 1.1 KB 2016-05-21
PHP module for 0.2.12
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_0_2_12 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
return array(
'ALTER TABLE `' . Common::prefixTable('site') . '`
CHANGE `ts_created` `ts_created` TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL' => false,
'ALTER TABLE `' . Common::prefixTable('log_visit') . '`
DROP `config_color_depth`' => 1091,
// 0.2.12 [673]
// Note: requires INDEX privilege
'DROP INDEX index_idaction ON `' . Common::prefixTable('log_action') . '`' => 1091,
);
}
public function doUpdate(Updater $updater)
{
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "0.2.12.php",
"description": "PHP module for 0.2.12",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "1.1 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/0.2.12.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 0.2.13.php (Php) 868 bytes 2016-05-21
PHP module for 0.2.13
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_0_2_13 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
return array(
'DROP TABLE IF EXISTS `' . Common::prefixTable('option') . '`' => false,
'CREATE TABLE `' . Common::prefixTable('option') . "` (
option_name VARCHAR( 64 ) NOT NULL ,
option_value LONGTEXT NOT NULL ,
autoload TINYINT NOT NULL DEFAULT '1',
PRIMARY KEY ( option_name )
)" => 1050,
);
}
public function doUpdate(Updater $updater)
{
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "0.2.13.php",
"description": "PHP module for 0.2.13",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "868 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/0.2.13.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 0.2.24.php (Php) 1.0 KB 2016-05-21
PHP module for 0.2.24
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_0_2_24 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
return array(
'CREATE INDEX index_type_name
ON ' . Common::prefixTable('log_action') . ' (type, name(15))' => 1072,
'CREATE INDEX index_idsite_date
ON ' . Common::prefixTable('log_visit') . ' (idsite, visit_server_date)' => 1072,
'DROP INDEX index_idsite ON ' . Common::prefixTable('log_visit') => 1091,
'DROP INDEX index_visit_server_date ON ' . Common::prefixTable('log_visit') => 1091,
);
}
public function doUpdate(Updater $updater)
{
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "0.2.24.php",
"description": "PHP module for 0.2.24",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "1.0 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/0.2.24.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 0.2.27.php (Php) 2.7 KB 2016-05-21
PHP module for 0.2.27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\DbHelper;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_0_2_27 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
$sqlarray = array(
'ALTER TABLE `' . Common::prefixTable('log_visit') . '`
ADD `visit_goal_converted` VARCHAR( 1 ) NOT NULL AFTER `visit_total_time`' => 1060,
// 0.2.27 [826]
'ALTER TABLE `' . Common::prefixTable('log_visit') . '`
CHANGE `visit_goal_converted` `visit_goal_converted` TINYINT(1) NOT NULL' => 1060,
'CREATE TABLE `' . Common::prefixTable('goal') . "` (
`idsite` int(11) NOT NULL,
`idgoal` int(11) NOT NULL,
`name` varchar(50) NOT NULL,
`match_attribute` varchar(20) NOT NULL,
`pattern` varchar(255) NOT NULL,
`pattern_type` varchar(10) NOT NULL,
`case_sensitive` tinyint(4) NOT NULL,
`revenue` float NOT NULL,
`deleted` tinyint(4) NOT NULL default '0',
PRIMARY KEY (`idsite`,`idgoal`)
)" => 1050,
'CREATE TABLE `' . Common::prefixTable('log_conversion') . '` (
`idvisit` int(10) unsigned NOT NULL,
`idsite` int(10) unsigned NOT NULL,
`visitor_idcookie` char(32) NOT NULL,
`server_time` datetime NOT NULL,
`visit_server_date` date NOT NULL,
`idaction` int(11) NOT NULL,
`idlink_va` int(11) NOT NULL,
... [truncated, 31 more lines] ...
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "0.2.27.php",
"description": "PHP module for 0.2.27",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "2.7 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/0.2.27.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 0.2.32.php (Php) 1.1 KB 2016-05-21
PHP module for 0.2.32
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_0_2_32 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
return array(
// 0.2.32 [941]
'ALTER TABLE `' . Common::prefixTable('access') . '`
CHANGE `login` `login` VARCHAR( 100 ) NOT NULL' => false,
'ALTER TABLE `' . Common::prefixTable('user') . '`
CHANGE `login` `login` VARCHAR( 100 ) NOT NULL' => false,
'ALTER TABLE `' . Common::prefixTable('user_dashboard') . '`
CHANGE `login` `login` VARCHAR( 100 ) NOT NULL' => '1146',
'ALTER TABLE `' . Common::prefixTable('user_language') . '`
CHANGE `login` `login` VARCHAR( 100 ) NOT NULL' => '1146',
);
}
public function doUpdate(Updater $updater)
{
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "0.2.32.php",
"description": "PHP module for 0.2.32",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "1.1 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/0.2.32.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 0.2.33.php (Php) 1.2 KB 2016-05-21
PHP module for 0.2.33
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\DbHelper;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_0_2_33 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
$sqlarray = array(
// 0.2.33 [1020]
'ALTER TABLE `' . Common::prefixTable('user_dashboard') . '`
CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci ' => '1146',
'ALTER TABLE `' . Common::prefixTable('user_language') . '`
CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci ' => '1146',
);
// alter table to set the utf8 collation
$tablesToAlter = DbHelper::getTablesInstalled(true);
foreach ($tablesToAlter as $table) {
$sqlarray['ALTER TABLE `' . $table . '`
CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci '] = false;
}
return $sqlarray;
}
public function doUpdate(Updater $updater)
{
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "0.2.33.php",
"description": "PHP module for 0.2.33",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "1.2 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/0.2.33.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 0.2.35.php (Php) 670 bytes 2016-05-21
PHP module for 0.2.35
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_0_2_35 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
return array(
'ALTER TABLE `' . Common::prefixTable('user_dashboard') . '`
CHANGE `layout` `layout` TEXT NOT NULL' => false,
);
}
public function doUpdate(Updater $updater)
{
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "0.2.35.php",
"description": "PHP module for 0.2.35",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "670 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/0.2.35.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 0.2.37.php (Php) 725 bytes 2016-05-21
PHP module for 0.2.37
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_0_2_37 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
return array(
'DELETE FROM `' . Common::prefixTable('user_dashboard') . "`
WHERE layout LIKE '%.getLastVisitsGraph%'
OR layout LIKE '%.getLastVisitsReturningGraph%'" => false,
);
}
public function doUpdate(Updater $updater)
{
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "0.2.37.php",
"description": "PHP module for 0.2.37",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "725 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/0.2.37.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 0.4.1.php (Php) 889 bytes 2016-05-21
PHP module for 0.4.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_0_4_1 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
return array(
'ALTER TABLE `' . Common::prefixTable('log_conversion') . '`
CHANGE `idlink_va` `idlink_va` INT(11) DEFAULT NULL' => false,
'ALTER TABLE `' . Common::prefixTable('log_conversion') . '`
CHANGE `idaction` `idaction` INT(11) DEFAULT NULL' => '1054',
);
}
public function doUpdate(Updater $updater)
{
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "0.4.1.php",
"description": "PHP module for 0.4.1",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "889 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/0.4.1.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 0.4.2.php (Php) 1.1 KB 2016-05-21
PHP module for 0.4.2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_0_4_2 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
return array(
'ALTER TABLE `' . Common::prefixTable('log_visit') . '`
ADD `config_java` TINYINT(1) NOT NULL AFTER `config_flash`' => 1060,
'ALTER TABLE `' . Common::prefixTable('log_visit') . '`
ADD `config_quicktime` TINYINT(1) NOT NULL AFTER `config_director`' => 1060,
'ALTER TABLE `' . Common::prefixTable('log_visit') . '`
ADD `config_gears` TINYINT(1) NOT NULL AFTER `config_windowsmedia`,
ADD `config_silverlight` TINYINT(1) NOT NULL AFTER `config_gears`' => 1060,
);
}
// when restoring (possibly) previousy dropped columns, ignore mysql code error 1060: duplicate column
public function doUpdate(Updater $updater)
{
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "0.4.2.php",
"description": "PHP module for 0.4.2",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "1.1 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/0.4.2.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 0.4.4.php (Php) 701 bytes 2016-05-21
PHP module for 0.4.4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Piwik;
use Piwik\Updates;
use Piwik\Updater;
/**
*/
class Updates_0_4_4 extends Updates
{
public function doUpdate(Updater $updater)
{
$obsoleteFile = PIWIK_DOCUMENT_ROOT . '/libs/open-flash-chart/php-ofc-library/ofc_upload_image.php';
if (file_exists($obsoleteFile)) {
$rc = @unlink($obsoleteFile);
if (!$rc) {
throw new \Exception(Piwik::translate('General_ExceptionUndeletableFile', array($obsoleteFile)));
}
}
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "0.4.4.php",
"description": "PHP module for 0.4.4",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "701 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/0.4.4.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 0.4.php (Php) 1.2 KB 2016-05-21
PHP module for 0.4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_0_4 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
return array(
// 0.4 [1140]
'UPDATE `' . Common::prefixTable('log_visit') . '`
SET location_ip=location_ip+CAST(POW(2,32) AS UNSIGNED) WHERE location_ip < 0' => false,
'ALTER TABLE `' . Common::prefixTable('log_visit') . '`
CHANGE `location_ip` `location_ip` BIGINT UNSIGNED NOT NULL' => 1054,
'UPDATE `' . Common::prefixTable('logger_api_call') . '`
SET caller_ip=caller_ip+CAST(POW(2,32) AS UNSIGNED) WHERE caller_ip < 0' => 1146,
'ALTER TABLE `' . Common::prefixTable('logger_api_call') . '`
CHANGE `caller_ip` `caller_ip` BIGINT UNSIGNED' => 1146,
);
}
public function doUpdate(Updater $updater)
{
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "0.4.php",
"description": "PHP module for 0.4",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "1.2 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/0.4.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 0.5.4.php (Php) 2.0 KB 2016-05-21
PHP module for 0.5.4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Config;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_0_5_4 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
return array(
'ALTER TABLE `' . Common::prefixTable('log_action') . '`
CHANGE `name` `name` TEXT' => false,
);
}
public function doUpdate(Updater $updater)
{
$salt = Common::generateUniqId();
$config = Config::getInstance();
$superuser = $config->superuser;
if (!isset($superuser['salt'])) {
try {
if (is_writable(Config::getLocalConfigPath())) {
$superuser['salt'] = $salt;
$config->superuser = $superuser;
$config->forceSave();
} else {
throw new \Exception('mandatory update failed');
}
} catch (\Exception $e) {
throw new \Piwik\UpdaterErrorException("Please edit your config/config.ini.php file and add below <code>[superuser]</code> the following line: <br /><code>salt = $salt</code>");
}
}
$plugins = $config->Plugins;
if (!in_array('MultiSites', $plugins)) {
try {
... [truncated, 16 more lines] ...
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "0.5.4.php",
"description": "PHP module for 0.5.4",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "2.0 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/0.5.4.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 0.5.5.php (Php) 1.3 KB 2016-05-21
PHP module for 0.5.5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\DbHelper;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_0_5_5 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
$sqlarray = array(
'DROP INDEX index_idsite_date ON ' . Common::prefixTable('log_visit') => 1091,
'CREATE INDEX index_idsite_date_config ON ' . Common::prefixTable('log_visit') . ' (idsite, visit_server_date, config_md5config(8))' => array(1061,1072),
);
$tables = DbHelper::getTablesInstalled();
foreach ($tables as $tableName) {
if (preg_match('/archive_/', $tableName) == 1) {
$sqlarray['DROP INDEX index_all ON ' . $tableName] = 1091;
}
if (preg_match('/archive_numeric_/', $tableName) == 1) {
$sqlarray['CREATE INDEX index_idsite_dates_period ON ' . $tableName . ' (idsite, date1, date2, period)'] = 1061;
}
}
return $sqlarray;
}
public function doUpdate(Updater $updater)
{
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "0.5.5.php",
"description": "PHP module for 0.5.5",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "1.3 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/0.5.5.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 0.5.php (Php) 2.1 KB 2016-05-21
PHP module for 0.5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_0_5 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
return array(
'ALTER TABLE ' . Common::prefixTable('log_action') . ' ADD COLUMN `hash` INTEGER(10) UNSIGNED NOT NULL AFTER `name`;' => 1060,
'ALTER TABLE ' . Common::prefixTable('log_visit') . ' CHANGE visit_exit_idaction visit_exit_idaction_url INTEGER(11) NOT NULL;' => 1054,
'ALTER TABLE ' . Common::prefixTable('log_visit') . ' CHANGE visit_entry_idaction visit_entry_idaction_url INTEGER(11) NOT NULL;' => 1054,
'ALTER TABLE ' . Common::prefixTable('log_link_visit_action') . ' CHANGE `idaction_ref` `idaction_url_ref` INTEGER(10) UNSIGNED NOT NULL;' => 1054,
'ALTER TABLE ' . Common::prefixTable('log_link_visit_action') . ' CHANGE `idaction` `idaction_url` INTEGER(10) UNSIGNED NOT NULL;' => 1054,
'ALTER TABLE ' . Common::prefixTable('log_link_visit_action') . ' ADD COLUMN `idaction_name` INTEGER(10) UNSIGNED AFTER `idaction_url_ref`;' => 1060,
'ALTER TABLE ' . Common::prefixTable('log_conversion') . ' CHANGE `idaction` `idaction_url` INTEGER(11) UNSIGNED NOT NULL;' => 1054,
'UPDATE ' . Common::prefixTable('log_action') . ' SET `hash` = CRC32(name);' => false,
'CREATE INDEX index_type_hash ON ' . Common::prefixTable('log_action') . ' (type, hash);' => 1061,
'DROP INDEX index_type_name ON ' . Common::prefixTable('log_action') . ';' => 1091,
);
}
public function doUpdate(Updater $updater)
{
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "0.5.php",
"description": "PHP module for 0.5",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "2.1 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/0.5.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 0.6-rc1.php (Php) 4.5 KB 2016-05-21
PHP module for 0.6 rc1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_0_6_rc1 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
$defaultTimezone = 'UTC';
$defaultCurrency = 'USD';
return array(
'ALTER TABLE ' . Common::prefixTable('user') . ' CHANGE date_registered date_registered TIMESTAMP NULL' => 1054,
'ALTER TABLE ' . Common::prefixTable('site') . ' CHANGE ts_created ts_created TIMESTAMP NULL' => 1054,
'ALTER TABLE ' . Common::prefixTable('site') . ' ADD `timezone` VARCHAR( 50 ) NOT NULL AFTER `ts_created` ;' => 1060,
'UPDATE ' . Common::prefixTable('site') . ' SET `timezone` = "' . $defaultTimezone . '";' => 1060,
'ALTER TABLE ' . Common::prefixTable('site') . ' ADD currency CHAR( 3 ) NOT NULL AFTER `timezone` ;' => 1060,
'UPDATE ' . Common::prefixTable('site') . ' SET `currency` = "' . $defaultCurrency . '";' => 1060,
'ALTER TABLE ' . Common::prefixTable('site') . ' ADD `excluded_ips` TEXT NOT NULL AFTER `currency` ;' => 1060,
'ALTER TABLE ' . Common::prefixTable('site') . ' ADD excluded_parameters VARCHAR( 255 ) NOT NULL AFTER `excluded_ips` ;' => 1060,
'ALTER TABLE ' . Common::prefixTable('log_visit') . ' ADD INDEX `index_idsite_datetime_config` ( `idsite` , `visit_last_action_time` , `config_md5config` ( 8 ) ) ;' => array(1061, 1072),
'ALTER TABLE ' . Common::prefixTable('log_visit') . ' ADD INDEX index_idsite_idvisit (idsite, idvisit) ;' => array(1061, 1072),
'ALTER TABLE ' . Common::prefixTable('log_conversion') . ' DROP INDEX index_idsite_date' => 1091,
'ALTER TABLE ' . Common::prefixTable('log_conversion') . ' DROP visit_server_date;' => 1091,
'ALTER TABLE ' . Common::prefixTable('log_conversion') . ' ADD INDEX index_idsite_datetime ( `idsite` , `server_time` )' => array(1072, 1061),
);
}
public function doUpdate(Updater $updater)
{
// first we disable the plugins and keep an array of warnings messages
$pluginsToDisableMessage = array(
'SearchEnginePosition' => "SearchEnginePosition plugin was disabled, because it is not compatible with the new Piwik 0.6. \n You can download the latest version of the plugin, compatible with Piwik 0.6.\n<a target='_blank' href='?module=Proxy&action=redirect&url=https://github.com/piwik/piwik/issues/502'>Click here.</a>",
'GeoIP' => "GeoIP plugin was disabled, because it is not compatible with the new Piwik 0.6. \nYou can download the latest version of the plugin, compatible with Piwik 0.6.\n<a target='_blank' href='?module=Proxy&action=redirect&url=https://github.com/piwik/piwik/issues/45'>Click here.</a>"
);
$disabledPlugins = array();
foreach ($pluginsToDisableMessage as $pluginToDisable => $warningMessage) {
if (\Piwik\Plugin\Manager::getInstance()->isPluginActivated($pluginToDisable)) {
... [truncated, 18 more lines] ...
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "0.6-rc1.php",
"description": "PHP module for 0.6 rc1",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "4.5 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/0.6-rc1.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 0.6.3.php (Php) 1.3 KB 2016-05-21
PHP module for 0.6.3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Config;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_0_6_3 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
return array(
'ALTER TABLE `' . Common::prefixTable('log_visit') . '`
CHANGE `location_ip` `location_ip` INT UNSIGNED NOT NULL' => 1054,
'ALTER TABLE `' . Common::prefixTable('logger_api_call') . '`
CHANGE `caller_ip` `caller_ip` INT UNSIGNED' => array(1054, 1146),
);
}
public function doUpdate(Updater $updater)
{
$config = Config::getInstance();
$dbInfos = $config->database;
if (!isset($dbInfos['schema'])) {
try {
if (is_writable(Config::getLocalConfigPath())) {
$config->database = $dbInfos;
$config->forceSave();
} else {
throw new \Exception('mandatory update failed');
}
} catch (\Exception $e) {
}
}
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "0.6.3.php",
"description": "PHP module for 0.6.3",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "1.3 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/0.6.3.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 0.7.php (Php) 677 bytes 2016-05-21
PHP module for 0.7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_0_7 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
return array(
'ALTER TABLE `' . Common::prefixTable('option') . '`
CHANGE `option_name` `option_name` VARCHAR(255) NOT NULL' => false,
);
}
public function doUpdate(Updater $updater)
{
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "0.7.php",
"description": "PHP module for 0.7",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "677 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/0.7.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 0.9.1.php (Php) 1.5 KB 2016-05-21
PHP module for 0.9.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\SettingsServer;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_0_9_1 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
if (!SettingsServer::isTimezoneSupportEnabled()) {
return array();
}
// @see http://bugs.php.net/46111
$timezones = timezone_identifiers_list();
$brokenTZ = array();
foreach ($timezones as $timezone) {
$testDate = "2008-08-19 13:00:00 " . $timezone;
if (!strtotime($testDate)) {
$brokenTZ[] = $timezone;
}
}
$timezoneList = '"' . implode('","', $brokenTZ) . '"';
return array(
'UPDATE ' . Common::prefixTable('site') . '
SET timezone = "UTC"
WHERE timezone IN (' . $timezoneList . ')' => false,
'UPDATE `' . Common::prefixTable('option') . '`
SET option_value = "UTC"
WHERE option_name = "SitesManager_DefaultTimezone"
AND option_value IN (' . $timezoneList . ')' => false,
);
}
... [truncated, 8 more lines] ...
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "0.9.1.php",
"description": "PHP module for 0.9.1",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "1.5 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/0.9.1.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 1.1.php (Php) 1012 bytes 2016-05-21
PHP module for 1.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Config;
use Piwik\Piwik;
use Piwik\Updates;
use Piwik\Updater;
/**
*/
class Updates_1_1 extends Updates
{
public function doUpdate(Updater $updater)
{
$config = Config::getInstance();
try {
$superuser = $config->superuser;
} catch (\Exception $e) {
return;
}
if (empty($superuser['login'])) {
return;
}
$rootLogin = $superuser['login'];
try {
// throws an exception if invalid
Piwik::checkValidLoginString($rootLogin);
} catch (\Exception $e) {
throw new \Exception('Superuser login name "' . $rootLogin . '" is no longer a valid format. '
. $e->getMessage()
. ' Edit your config/config.ini.php to change it.');
}
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "1.1.php",
"description": "PHP module for 1.1",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "1012 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/1.1.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 1.10-b4.php (Php) 572 bytes 2016-05-21
PHP module for 1.10 b4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Updates;
use Piwik\Updater;
/**
*/
class Updates_1_10_b4 extends Updates
{
public static function isMajorUpdate()
{
return false;
}
public function doUpdate(Updater $updater)
{
try {
\Piwik\Plugin\Manager::getInstance()->activatePlugin('MobileMessaging');
} catch (\Exception $e) {
// pass
}
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "1.10-b4.php",
"description": "PHP module for 1.10 b4",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "572 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/1.10-b4.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 1.10.1.php (Php) 563 bytes 2016-05-21
PHP module for 1.10.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Updates;
use Piwik\Updater;
/**
*/
class Updates_1_10_1 extends Updates
{
public static function isMajorUpdate()
{
return false;
}
public function doUpdate(Updater $updater)
{
try {
\Piwik\Plugin\Manager::getInstance()->activatePlugin('Overlay');
} catch (\Exception $e) {
// pass
}
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "1.10.1.php",
"description": "PHP module for 1.10.1",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "563 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/1.10.1.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 1.10.2-b1.php (Php) 743 bytes 2016-05-21
PHP module for 1.10.2 b1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_1_10_2_b1 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
return array(
// ignore existing column name error (1060)
'ALTER TABLE ' . Common::prefixTable('report')
. " ADD COLUMN hour tinyint NOT NULL default 0 AFTER period" => 1060,
);
}
public function doUpdate(Updater $updater)
{
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "1.10.2-b1.php",
"description": "PHP module for 1.10.2 b1",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "743 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/1.10.2-b1.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 1.10.2-b2.php (Php) 757 bytes 2016-05-21
PHP module for 1.10.2 b2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_1_10_2_b2 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
return array(
// ignore existing column name error (1060)
'ALTER TABLE ' . Common::prefixTable('site')
. " ADD COLUMN `keep_url_fragment` TINYINT NOT NULL DEFAULT 0 AFTER `group`" => 1060,
);
}
public function doUpdate(Updater $updater)
{
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "1.10.2-b2.php",
"description": "PHP module for 1.10.2 b2",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "757 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/1.10.2-b2.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 1.11-b1.php (Php) 571 bytes 2016-05-21
PHP module for 1.11 b1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Updates;
use Piwik\Updater;
/**
*/
class Updates_1_11_b1 extends Updates
{
public static function isMajorUpdate()
{
return false;
}
public function doUpdate(Updater $updater)
{
try {
\Piwik\Plugin\Manager::getInstance()->activatePlugin('UserCountryMap');
} catch (\Exception $e) {
// pass
}
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "1.11-b1.php",
"description": "PHP module for 1.11 b1",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "571 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/1.11-b1.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 1.12-b1.php (Php) 757 bytes 2016-05-21
PHP module for 1.12 b1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_1_12_b1 extends Updates
{
public static function isMajorUpdate()
{
return true;
}
public function getMigrationQueries(Updater $updater)
{
return array(
'ALTER TABLE `' . Common::prefixTable('log_link_visit_action') . '`
ADD `custom_float` FLOAT NULL DEFAULT NULL' => 1060
);
}
public function doUpdate(Updater $updater)
{
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "1.12-b1.php",
"description": "PHP module for 1.12 b1",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "757 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/1.12-b1.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 1.12-b15.php (Php) 493 bytes 2016-05-21
PHP module for 1.12 b15
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Updates;
use Piwik\Updater;
/**
*/
class Updates_1_12_b15 extends Updates
{
public function doUpdate(Updater $updater)
{
try {
\Piwik\Plugin\Manager::getInstance()->activatePlugin('SegmentEditor');
} catch (\Exception $e) {
// pass
}
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "1.12-b15.php",
"description": "PHP module for 1.12 b15",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "493 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/1.12-b15.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 1.12-b16.php (Php) 733 bytes 2016-05-21
PHP module for 1.12 b16
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_1_12_b16 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
return array(
// ignore existing column name error (1060)
'ALTER TABLE ' . Common::prefixTable('report')
. " ADD COLUMN idsegment INT(11) AFTER description" => 1060,
);
}
public function doUpdate(Updater $updater)
{
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "1.12-b16.php",
"description": "PHP module for 1.12 b16",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "733 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/1.12-b16.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 1.2-rc1.php (Php) 6.9 KB 2016-05-21
PHP module for 1.2 rc1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_1_2_rc1 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
return array(
// Various performance improvements schema updates
'ALTER TABLE `' . Common::prefixTable('log_visit') . '`
DROP `visit_server_date`,
DROP INDEX `index_idsite_date_config`,
DROP INDEX `index_idsite_datetime_config`,
ADD `idvisitor` BINARY(8) NOT NULL AFTER `idsite`,
ADD `config_id` BINARY(8) NOT NULL AFTER `config_md5config`
' => array(1054, 1091),
'ALTER TABLE `' . Common::prefixTable('log_visit') . '`
ADD `visit_entry_idaction_name` INT UNSIGNED NOT NULL AFTER `visit_entry_idaction_url`,
ADD `visit_exit_idaction_name` INT UNSIGNED NOT NULL AFTER `visit_exit_idaction_url`,
CHANGE `visit_exit_idaction_url` `visit_exit_idaction_url` INT UNSIGNED NOT NULL,
CHANGE `visit_entry_idaction_url` `visit_entry_idaction_url` INT UNSIGNED NOT NULL,
CHANGE `referer_type` `referer_type` TINYINT UNSIGNED NULL DEFAULT NULL,
ADD visitor_count_visits SMALLINT(5) UNSIGNED NOT NULL AFTER `visitor_returning`,
ADD visitor_days_since_last SMALLINT(5) UNSIGNED NOT NULL,
ADD visitor_days_since_first SMALLINT(5) UNSIGNED NOT NULL
' => 1060,
'ALTER TABLE `' . Common::prefixTable('log_visit') . '`
ADD custom_var_k1 VARCHAR(100) DEFAULT NULL,
ADD custom_var_v1 VARCHAR(100) DEFAULT NULL,
ADD custom_var_k2 VARCHAR(100) DEFAULT NULL,
ADD custom_var_v2 VARCHAR(100) DEFAULT NULL,
ADD custom_var_k3 VARCHAR(100) DEFAULT NULL,
ADD custom_var_v3 VARCHAR(100) DEFAULT NULL,
ADD custom_var_k4 VARCHAR(100) DEFAULT NULL,
ADD custom_var_v4 VARCHAR(100) DEFAULT NULL,
ADD custom_var_k5 VARCHAR(100) DEFAULT NULL,
... [truncated, 105 more lines] ...
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "1.2-rc1.php",
"description": "PHP module for 1.2 rc1",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "6.9 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/1.2-rc1.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 1.2-rc2.php (Php) 474 bytes 2016-05-21
PHP module for 1.2 rc2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Updates;
use Piwik\Updater;
/**
*/
class Updates_1_2_rc2 extends Updates
{
public function doUpdate(Updater $updater)
{
try {
\Piwik\Plugin\Manager::getInstance()->activatePlugin('CustomVariables');
} catch (\Exception $e) {
}
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "1.2-rc2.php",
"description": "PHP module for 1.2 rc2",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "474 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/1.2-rc2.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 1.2.3.php (Php) 1.1 KB 2016-05-21
PHP module for 1.2.3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Config;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_1_2_3 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
return array(
// LOAD DATA INFILE uses the database's charset
'ALTER DATABASE `' . Config::getInstance()->database['dbname'] . '` DEFAULT CHARACTER SET utf8' => false,
// Various performance improvements schema updates
'ALTER TABLE `' . Common::prefixTable('log_visit') . '`
DROP INDEX index_idsite_datetime_config,
DROP INDEX index_idsite_idvisit,
ADD INDEX index_idsite_config_datetime (idsite, config_id, visit_last_action_time),
ADD INDEX index_idsite_datetime (idsite, visit_last_action_time)' => array(1061, 1091),
);
}
public function doUpdate(Updater $updater)
{
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "1.2.3.php",
"description": "PHP module for 1.2.3",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "1.1 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/1.2.3.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 1.2.5-rc1.php (Php) 894 bytes 2016-05-21
PHP module for 1.2.5 rc1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_1_2_5_rc1 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
return array(
'ALTER TABLE `' . Common::prefixTable('goal') . '`
ADD `allow_multiple` tinyint(4) NOT NULL AFTER case_sensitive' => 1060,
'ALTER TABLE `' . Common::prefixTable('log_conversion') . '`
ADD buster int unsigned NOT NULL AFTER revenue,
DROP PRIMARY KEY,
ADD PRIMARY KEY (idvisit, idgoal, buster)' => 1060,
);
}
public function doUpdate(Updater $updater)
{
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "1.2.5-rc1.php",
"description": "PHP module for 1.2.5 rc1",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "894 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/1.2.5-rc1.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 1.2.5-rc7.php (Php) 684 bytes 2016-05-21
PHP module for 1.2.5 rc7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_1_2_5_rc7 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
return array(
'ALTER TABLE `' . Common::prefixTable('log_visit') . '`
ADD INDEX index_idsite_idvisitor (idsite, idvisitor)' => 1061,
);
}
public function doUpdate(Updater $updater)
{
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "1.2.5-rc7.php",
"description": "PHP module for 1.2.5 rc7",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "684 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/1.2.5-rc7.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 1.4-rc1.php (Php) 829 bytes 2016-05-21
PHP module for 1.4 rc1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_1_4_rc1 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
return array(
'UPDATE `' . Common::prefixTable('pdf') . '`
SET format = "pdf"' => '42S22',
'ALTER TABLE `' . Common::prefixTable('pdf') . '`
ADD COLUMN `format` VARCHAR(10)' => '42S22',
);
}
public function doUpdate(Updater $updater)
{
try {
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
} catch (\Exception $e) {
}
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "1.4-rc1.php",
"description": "PHP module for 1.4 rc1",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "829 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/1.4-rc1.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 1.4-rc2.php (Php) 1.6 KB 2016-05-21
PHP module for 1.4 rc2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_1_4_rc2 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
return array(
"SET sql_mode=''" => false,
// this converts the 32-bit UNSIGNED INT column to a 16 byte VARBINARY;
// _but_ MySQL does string conversion! (e.g., integer 1 is converted to 49 -- the ASCII code for "1")
'ALTER TABLE ' . Common::prefixTable('log_visit') . '
MODIFY location_ip VARBINARY(16) NOT NULL' => false,
'ALTER TABLE ' . Common::prefixTable('logger_api_call') . '
MODIFY caller_ip VARBINARY(16) NOT NULL' => 1146,
// fortunately, 2^32 is 10 digits long and fits in the VARBINARY(16) without truncation;
// to fix this, we cast to an integer, convert to hex, pad out leading zeros, and unhex it
'UPDATE ' . Common::prefixTable('log_visit') . "
SET location_ip = UNHEX(LPAD(HEX(CONVERT(location_ip, UNSIGNED)), 8, '0'))" => false,
'UPDATE ' . Common::prefixTable('logger_api_call') . "
SET caller_ip = UNHEX(LPAD(HEX(CONVERT(caller_ip, UNSIGNED)), 8, '0'))" => 1146,
);
}
public function doUpdate(Updater $updater)
{
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "1.4-rc2.php",
"description": "PHP module for 1.4 rc2",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "1.6 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/1.4-rc2.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 1.5-b1.php (Php) 2.4 KB 2016-05-21
PHP module for 1.5 b1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_1_5_b1 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
$logConversionTable = Common::prefixTable('log_conversion');
return array(
'CREATE TABLE `' . Common::prefixTable('log_conversion_item') . '` (
idsite int(10) UNSIGNED NOT NULL,
idvisitor BINARY(8) NOT NULL,
server_time DATETIME NOT NULL,
idvisit INTEGER(10) UNSIGNED NOT NULL,
idorder varchar(100) NOT NULL,
idaction_sku INTEGER(10) UNSIGNED NOT NULL,
idaction_name INTEGER(10) UNSIGNED NOT NULL,
idaction_category INTEGER(10) UNSIGNED NOT NULL,
price FLOAT NOT NULL,
quantity INTEGER(10) UNSIGNED NOT NULL,
deleted TINYINT(1) UNSIGNED NOT NULL,
PRIMARY KEY(idvisit, idorder, idaction_sku),
INDEX index_idsite_servertime ( idsite, server_time )
) DEFAULT CHARSET=utf8 ' => 1050,
'ALTER TABLE `' . Common::prefixTable('log_visit') . '`
ADD visitor_days_since_order SMALLINT(5) UNSIGNED NOT NULL AFTER visitor_days_since_last,
ADD visit_goal_buyer TINYINT(1) NOT NULL AFTER visit_goal_converted' => 1060,
'ALTER TABLE `' . $logConversionTable . '`
ADD visitor_days_since_order SMALLINT(5) UNSIGNED NOT NULL AFTER visitor_days_since_first' => 1060,
'ALTER TABLE `' . $logConversionTable . '`
ADD idorder varchar(100) default NULL AFTER buster,
... [truncated, 17 more lines] ...
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "1.5-b1.php",
"description": "PHP module for 1.5 b1",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "2.4 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/1.5-b1.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 1.5-b2.php (Php) 1.1 KB 2016-05-21
PHP module for 1.5 b2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_1_5_b2 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
return array(
'ALTER TABLE `' . Common::prefixTable('log_link_visit_action') . '`
ADD custom_var_k1 VARCHAR(100) DEFAULT NULL AFTER time_spent_ref_action,
ADD custom_var_v1 VARCHAR(100) DEFAULT NULL,
ADD custom_var_k2 VARCHAR(100) DEFAULT NULL,
ADD custom_var_v2 VARCHAR(100) DEFAULT NULL,
ADD custom_var_k3 VARCHAR(100) DEFAULT NULL,
ADD custom_var_v3 VARCHAR(100) DEFAULT NULL,
ADD custom_var_k4 VARCHAR(100) DEFAULT NULL,
ADD custom_var_v4 VARCHAR(100) DEFAULT NULL,
ADD custom_var_k5 VARCHAR(100) DEFAULT NULL,
ADD custom_var_v5 VARCHAR(100) DEFAULT NULL' => 1060,
);
}
public function doUpdate(Updater $updater)
{
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "1.5-b2.php",
"description": "PHP module for 1.5 b2",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "1.1 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/1.5-b2.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 1.5-b3.php (Php) 2.8 KB 2016-05-21
PHP module for 1.5 b3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_1_5_b3 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
return array(
'ALTER TABLE `' . Common::prefixTable('log_visit') . '`
CHANGE custom_var_k1 custom_var_k1 VARCHAR(100) DEFAULT NULL,
CHANGE custom_var_v1 custom_var_v1 VARCHAR(100) DEFAULT NULL,
CHANGE custom_var_k2 custom_var_k2 VARCHAR(100) DEFAULT NULL,
CHANGE custom_var_v2 custom_var_v2 VARCHAR(100) DEFAULT NULL,
CHANGE custom_var_k3 custom_var_k3 VARCHAR(100) DEFAULT NULL,
CHANGE custom_var_v3 custom_var_v3 VARCHAR(100) DEFAULT NULL,
CHANGE custom_var_k4 custom_var_k4 VARCHAR(100) DEFAULT NULL,
CHANGE custom_var_v4 custom_var_v4 VARCHAR(100) DEFAULT NULL,
CHANGE custom_var_k5 custom_var_k5 VARCHAR(100) DEFAULT NULL,
CHANGE custom_var_v5 custom_var_v5 VARCHAR(100) DEFAULT NULL' => false,
'ALTER TABLE `' . Common::prefixTable('log_conversion') . '`
CHANGE custom_var_k1 custom_var_k1 VARCHAR(100) DEFAULT NULL,
CHANGE custom_var_v1 custom_var_v1 VARCHAR(100) DEFAULT NULL,
CHANGE custom_var_k2 custom_var_k2 VARCHAR(100) DEFAULT NULL,
CHANGE custom_var_v2 custom_var_v2 VARCHAR(100) DEFAULT NULL,
CHANGE custom_var_k3 custom_var_k3 VARCHAR(100) DEFAULT NULL,
CHANGE custom_var_v3 custom_var_v3 VARCHAR(100) DEFAULT NULL,
CHANGE custom_var_k4 custom_var_k4 VARCHAR(100) DEFAULT NULL,
CHANGE custom_var_v4 custom_var_v4 VARCHAR(100) DEFAULT NULL,
CHANGE custom_var_k5 custom_var_k5 VARCHAR(100) DEFAULT NULL,
CHANGE custom_var_v5 custom_var_v5 VARCHAR(100) DEFAULT NULL' => false,
'ALTER TABLE `' . Common::prefixTable('log_link_visit_action') . '`
CHANGE custom_var_k1 custom_var_k1 VARCHAR(100) DEFAULT NULL,
CHANGE custom_var_v1 custom_var_v1 VARCHAR(100) DEFAULT NULL,
CHANGE custom_var_k2 custom_var_k2 VARCHAR(100) DEFAULT NULL,
CHANGE custom_var_v2 custom_var_v2 VARCHAR(100) DEFAULT NULL,
CHANGE custom_var_k3 custom_var_k3 VARCHAR(100) DEFAULT NULL,
... [truncated, 14 more lines] ...
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "1.5-b3.php",
"description": "PHP module for 1.5 b3",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "2.8 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/1.5-b3.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 1.5-b4.php (Php) 653 bytes 2016-05-21
PHP module for 1.5 b4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_1_5_b4 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
return array(
'ALTER TABLE `' . Common::prefixTable('site') . '`
ADD ecommerce TINYINT DEFAULT 0' => 1060,
);
}
public function doUpdate(Updater $updater)
{
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "1.5-b4.php",
"description": "PHP module for 1.5 b4",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "653 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/1.5-b4.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 1.5-b5.php (Php) 782 bytes 2016-05-21
PHP module for 1.5 b5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_1_5_b5 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
return array(
'CREATE TABLE `' . Common::prefixTable('session') . '` (
id CHAR(32) NOT NULL,
modified INTEGER,
lifetime INTEGER,
data TEXT,
PRIMARY KEY ( id )
) DEFAULT CHARSET=utf8' => 1050,
);
}
public function doUpdate(Updater $updater)
{
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "1.5-b5.php",
"description": "PHP module for 1.5 b5",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "782 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/1.5-b5.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 1.5-rc6.php (Php) 473 bytes 2016-05-21
PHP module for 1.5 rc6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Updates;
use Piwik\Updater;
/**
*/
class Updates_1_5_rc6 extends Updates
{
public function doUpdate(Updater $updater)
{
try {
\Piwik\Plugin\Manager::getInstance()->activatePlugin('PrivacyManager');
} catch (\Exception $e) {
}
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "1.5-rc6.php",
"description": "PHP module for 1.5 rc6",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "473 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/1.5-rc6.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 1.6-b1.php (Php) 3.1 KB 2016-05-21
PHP module for 1.6 b1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_1_6_b1 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
return array(
'ALTER TABLE `' . Common::prefixTable('log_conversion_item') . '`
ADD idaction_category2 INTEGER(10) UNSIGNED NOT NULL AFTER idaction_category,
ADD idaction_category3 INTEGER(10) UNSIGNED NOT NULL,
ADD idaction_category4 INTEGER(10) UNSIGNED NOT NULL,
ADD idaction_category5 INTEGER(10) UNSIGNED NOT NULL' => 1060,
'ALTER TABLE `' . Common::prefixTable('log_visit') . '`
CHANGE custom_var_k1 custom_var_k1 VARCHAR(200) DEFAULT NULL,
CHANGE custom_var_v1 custom_var_v1 VARCHAR(200) DEFAULT NULL,
CHANGE custom_var_k2 custom_var_k2 VARCHAR(200) DEFAULT NULL,
CHANGE custom_var_v2 custom_var_v2 VARCHAR(200) DEFAULT NULL,
CHANGE custom_var_k3 custom_var_k3 VARCHAR(200) DEFAULT NULL,
CHANGE custom_var_v3 custom_var_v3 VARCHAR(200) DEFAULT NULL,
CHANGE custom_var_k4 custom_var_k4 VARCHAR(200) DEFAULT NULL,
CHANGE custom_var_v4 custom_var_v4 VARCHAR(200) DEFAULT NULL,
CHANGE custom_var_k5 custom_var_k5 VARCHAR(200) DEFAULT NULL,
CHANGE custom_var_v5 custom_var_v5 VARCHAR(200) DEFAULT NULL' => 1060,
'ALTER TABLE `' . Common::prefixTable('log_conversion') . '`
CHANGE custom_var_k1 custom_var_k1 VARCHAR(200) DEFAULT NULL,
CHANGE custom_var_v1 custom_var_v1 VARCHAR(200) DEFAULT NULL,
CHANGE custom_var_k2 custom_var_k2 VARCHAR(200) DEFAULT NULL,
CHANGE custom_var_v2 custom_var_v2 VARCHAR(200) DEFAULT NULL,
CHANGE custom_var_k3 custom_var_k3 VARCHAR(200) DEFAULT NULL,
CHANGE custom_var_v3 custom_var_v3 VARCHAR(200) DEFAULT NULL,
CHANGE custom_var_k4 custom_var_k4 VARCHAR(200) DEFAULT NULL,
CHANGE custom_var_v4 custom_var_v4 VARCHAR(200) DEFAULT NULL,
CHANGE custom_var_k5 custom_var_k5 VARCHAR(200) DEFAULT NULL,
CHANGE custom_var_v5 custom_var_v5 VARCHAR(200) DEFAULT NULL' => 1060,
'ALTER TABLE `' . Common::prefixTable('log_link_visit_action') . '`
... [truncated, 19 more lines] ...
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "1.6-b1.php",
"description": "PHP module for 1.6 b1",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "3.1 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/1.6-b1.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 1.6-rc1.php (Php) 469 bytes 2016-05-21
PHP module for 1.6 rc1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Updates;
use Piwik\Updater;
/**
*/
class Updates_1_6_rc1 extends Updates
{
public function doUpdate(Updater $updater)
{
try {
\Piwik\Plugin\Manager::getInstance()->activatePlugin('ImageGraph');
} catch (\Exception $e) {
}
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "1.6-rc1.php",
"description": "PHP module for 1.6 rc1",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "469 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/1.6-rc1.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 1.7-b1.php (Php) 883 bytes 2016-05-21
PHP module for 1.7 b1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_1_7_b1 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
return array(
'ALTER TABLE `' . Common::prefixTable('pdf') . '`
ADD COLUMN `aggregate_reports_format` TINYINT(1) NOT NULL AFTER `reports`' => 1060,
'UPDATE `' . Common::prefixTable('pdf') . '`
SET `aggregate_reports_format` = 1' => false,
);
}
public function doUpdate(Updater $updater)
{
try {
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
} catch (\Exception $e) {
}
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "1.7-b1.php",
"description": "PHP module for 1.7 b1",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "883 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/1.7-b1.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 1.7.2-rc5.php (Php) 758 bytes 2016-05-21
PHP module for 1.7.2 rc5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_1_7_2_rc5 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
return array(
'ALTER TABLE `' . Common::prefixTable('pdf') . '`
CHANGE `aggregate_reports_format` `display_format` TINYINT(1) NOT NULL' => false
);
}
public function doUpdate(Updater $updater)
{
try {
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
} catch (\Exception $e) {
}
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "1.7.2-rc5.php",
"description": "PHP module for 1.7.2 rc5",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "758 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/1.7.2-rc5.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 1.7.2-rc7.php (Php) 1.4 KB 2016-05-21
PHP module for 1.7.2 rc7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Db;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_1_7_2_rc7 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
return array(
'ALTER TABLE `' . Common::prefixTable('user_dashboard') . '`
ADD `name` VARCHAR( 100 ) NULL DEFAULT NULL AFTER `iddashboard`' => 1060,
);
}
public function doUpdate(Updater $updater)
{
try {
$dashboards = Db::fetchAll('SELECT * FROM `' . Common::prefixTable('user_dashboard') . '`');
foreach ($dashboards as $dashboard) {
$idDashboard = $dashboard['iddashboard'];
$login = $dashboard['login'];
$layout = $dashboard['layout'];
$layout = html_entity_decode($layout);
$layout = str_replace("\\\"", "\"", $layout);
Db::query('UPDATE `' . Common::prefixTable('user_dashboard') . '` SET layout = ? WHERE iddashboard = ? AND login = ?', array($layout, $idDashboard, $login));
}
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
} catch (\Exception $e) {
}
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "1.7.2-rc7.php",
"description": "PHP module for 1.7.2 rc7",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "1.4 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/1.7.2-rc7.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 1.8.3-b1.php (Php) 4.2 KB 2016-05-21
PHP module for 1.8.3 b1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Db;
use Piwik\Plugins\ScheduledReports\ScheduledReports;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_1_8_3_b1 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
return array(
'ALTER TABLE `' . Common::prefixTable('site') . '`
CHANGE `excluded_parameters` `excluded_parameters` TEXT NOT NULL' => false,
'CREATE TABLE `' . Common::prefixTable('report') . '` (
`idreport` INT(11) NOT NULL AUTO_INCREMENT,
`idsite` INTEGER(11) NOT NULL,
`login` VARCHAR(100) NOT NULL,
`description` VARCHAR(255) NOT NULL,
`period` VARCHAR(10) NOT NULL,
`type` VARCHAR(10) NOT NULL,
`format` VARCHAR(10) NOT NULL,
`reports` TEXT NOT NULL,
`parameters` TEXT NULL,
`ts_created` TIMESTAMP NULL,
`ts_last_sent` TIMESTAMP NULL,
`deleted` tinyint(4) NOT NULL default 0,
PRIMARY KEY (`idreport`)
) DEFAULT CHARSET=utf8' => 1050,
);
}
public function doUpdate(Updater $updater)
{
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
if (!\Piwik\Plugin\Manager::getInstance()->isPluginLoaded('ScheduledReports')) {
... [truncated, 64 more lines] ...
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "1.8.3-b1.php",
"description": "PHP module for 1.8.3 b1",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "4.2 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/1.8.3-b1.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 1.8.4-b1.php (Php) 5.6 KB 2016-05-21
PHP module for 1.8.4 b1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_1_8_4_b1 extends Updates
{
public static function isMajorUpdate()
{
return true;
}
public function getMigrationQueries(Updater $updater)
{
$action = Common::prefixTable('log_action');
$duplicates = Common::prefixTable('log_action_duplicates');
$visitAction = Common::prefixTable('log_link_visit_action');
$conversion = Common::prefixTable('log_conversion');
$visit = Common::prefixTable('log_visit');
return array(
// add url_prefix column
" ALTER TABLE `$action`
ADD `url_prefix` TINYINT(2) NULL AFTER `type`;
" => 1060, // ignore error 1060 Duplicate column name 'url_prefix'
// remove protocol and www and store information in url_prefix
" UPDATE `$action`
SET
url_prefix = IF (
LEFT(name, 11) = 'http://www.', 1, IF (
LEFT(name, 7) = 'http://', 0, IF (
LEFT(name, 12) = 'https://www.', 3, IF (
LEFT(name, 8) = 'https://', 2, NULL
)
)
... [truncated, 141 more lines] ...
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "1.8.4-b1.php",
"description": "PHP module for 1.8.4 b1",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "5.6 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/1.8.4-b1.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 1.9-b16.php (Php) 1.5 KB 2016-05-21
PHP module for 1.9 b16
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_1_9_b16 extends Updates
{
public static function isMajorUpdate()
{
return true;
}
public function getMigrationQueries(Updater $updater)
{
return array(
'ALTER TABLE `' . Common::prefixTable('log_link_visit_action') . '`
CHANGE `idaction_url` `idaction_url` INT( 10 ) UNSIGNED NULL DEFAULT NULL'
=> false,
'ALTER TABLE `' . Common::prefixTable('log_visit') . '`
ADD visit_total_searches SMALLINT(5) UNSIGNED NOT NULL AFTER `visit_total_actions`'
=> 1060,
'ALTER TABLE `' . Common::prefixTable('site') . '`
ADD sitesearch TINYINT DEFAULT 1 AFTER `excluded_parameters`,
ADD sitesearch_keyword_parameters TEXT NOT NULL AFTER `sitesearch`,
ADD sitesearch_category_parameters TEXT NOT NULL AFTER `sitesearch_keyword_parameters`'
=> 1060,
// enable Site Search for all websites, users can manually disable the setting
'UPDATE `' . Common::prefixTable('site') . '`
SET `sitesearch` = 1' => false,
);
}
public function doUpdate(Updater $updater)
{
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
... [truncated, 3 more lines] ...
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "1.9-b16.php",
"description": "PHP module for 1.9 b16",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "1.5 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/1.9-b16.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 1.9-b19.php (Php) 1.0 KB 2016-05-21
PHP module for 1.9 b19
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_1_9_b19 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
return array(
'ALTER TABLE `' . Common::prefixTable('log_link_visit_action') . '`
CHANGE `idaction_url_ref` `idaction_url_ref` INT( 10 ) UNSIGNED NULL DEFAULT 0'
=> false,
'ALTER TABLE `' . Common::prefixTable('log_visit') . '`
CHANGE `visit_exit_idaction_url` `visit_exit_idaction_url` INT( 10 ) UNSIGNED NULL DEFAULT 0'
=> false
);
}
public function doUpdate(Updater $updater)
{
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
try {
\Piwik\Plugin\Manager::getInstance()->activatePlugin('Transitions');
} catch (\Exception $e) {
}
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "1.9-b19.php",
"description": "PHP module for 1.9 b19",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "1.0 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/1.9-b19.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 1.9-b9.php (Php) 1.6 KB 2016-05-21
PHP module for 1.9 b9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_1_9_b9 extends Updates
{
public static function isMajorUpdate()
{
return true;
}
public function getMigrationQueries(Updater $updater)
{
$logVisit = Common::prefixTable('log_visit');
$logConversion = Common::prefixTable('log_conversion');
$addColumns = "ADD `location_region` CHAR(2) NULL AFTER `location_country`,
ADD `location_city` VARCHAR(255) NULL AFTER `location_region`,
ADD `location_latitude` FLOAT(10, 6) NULL AFTER `location_city`,
ADD `location_longitude` FLOAT(10, 6) NULL AFTER `location_latitude`";
$dropColumns = "DROP `location_continent`";
return array(
"ALTER TABLE `$logVisit` $dropColumns" => 1091,
"ALTER TABLE `$logConversion` $dropColumns" => 1091,
// add geoip columns to log_visit
"ALTER TABLE `$logVisit` $addColumns" => 1060,
// add geoip columns to log_conversion
"ALTER TABLE `$logConversion` $addColumns" => 1060,
);
}
public function doUpdate(Updater $updater)
{
try {
... [truncated, 10 more lines] ...
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "1.9-b9.php",
"description": "PHP module for 1.9 b9",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "1.6 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/1.9-b9.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 1.9.1-b2.php (Php) 839 bytes 2016-05-21
PHP module for 1.9.1 b2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_1_9_1_b2 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
return array(
'ALTER TABLE ' . Common::prefixTable('site') . " DROP `feedburnerName`" => 1091
);
}
public function doUpdate(Updater $updater)
{
// manually remove ExampleFeedburner column
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
// remove ExampleFeedburner plugin
$pluginToDelete = 'ExampleFeedburner';
self::deletePluginFromConfigFile($pluginToDelete);
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "1.9.1-b2.php",
"description": "PHP module for 1.9.1 b2",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "839 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/1.9.1-b2.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 1.9.3-b10.php (Php) 570 bytes 2016-05-21
PHP module for 1.9.3 b10
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Updates;
use Piwik\Updater;
/**
*/
class Updates_1_9_3_b10 extends Updates
{
public static function isMajorUpdate()
{
return false;
}
public function doUpdate(Updater $updater)
{
try {
\Piwik\Plugin\Manager::getInstance()->activatePlugin('Annotations');
} catch (\Exception $e) {
// pass
}
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "1.9.3-b10.php",
"description": "PHP module for 1.9.3 b10",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "570 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/1.9.3-b10.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 1.9.3-b3.php (Php) 728 bytes 2016-05-21
PHP module for 1.9.3 b3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Updates;
use Piwik\Updater;
/**
*/
class Updates_1_9_3_b3 extends Updates
{
public function doUpdate(Updater $updater)
{
// Insight was a temporary code name for Overlay
$pluginToDelete = 'Insight';
self::deletePluginFromConfigFile($pluginToDelete);
\Piwik\Plugin\Manager::getInstance()->deletePluginFromFilesystem($pluginToDelete);
// We also clean up 1.9.1 and delete Feedburner plugin
\Piwik\Plugin\Manager::getInstance()->deletePluginFromFilesystem('Feedburner');
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "1.9.3-b3.php",
"description": "PHP module for 1.9.3 b3",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "728 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/1.9.3-b3.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 1.9.3-b8.php (Php) 813 bytes 2016-05-21
PHP module for 1.9.3 b8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_1_9_3_b8 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
return array(
// ignore existing column name error (1060)
'ALTER TABLE ' . Common::prefixTable('site')
. " ADD COLUMN excluded_user_agents TEXT NOT NULL AFTER excluded_parameters" => 1060,
);
}
public function doUpdate(Updater $updater)
{
// add excluded_user_agents column to site table
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "1.9.3-b8.php",
"description": "PHP module for 1.9.3 b8",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "813 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/1.9.3-b8.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.0-a12.php (Php) 1.3 KB 2016-05-21
PHP module for 2.0 a12
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Db;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_2_0_a12 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
$result = array(
'ALTER TABLE ' . Common::prefixTable('logger_message') . ' MODIFY level VARCHAR(16) NULL' => false
);
$unneededLogTables = array('logger_exception', 'logger_error', 'logger_api_call');
foreach ($unneededLogTables as $table) {
$tableName = Common::prefixTable($table);
try {
$rows = Db::fetchOne("SELECT COUNT(*) FROM $tableName");
if ($rows == 0) {
$result["DROP TABLE $tableName"] = false;
}
} catch (\Exception $ex) {
// ignore
}
}
return $result;
}
public function doUpdate(Updater $updater)
{
// change level column in logger_message table to string & remove other logging tables if empty
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.0-a12.php",
"description": "PHP module for 2.0 a12",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "1.3 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.0-a12.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.0-a13.php (Php) 2.4 KB 2016-05-21
PHP module for 2.0 a13
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Option;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_2_0_a13 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
// Renaming old archived records now that the plugin is called Referrers
$sql = array();
$tables = \Piwik\DbHelper::getTablesInstalled();
foreach ($tables as $tableName) {
if (strpos($tableName, 'archive_') !== false) {
$sql['UPDATE `' . $tableName . '` SET `name`=REPLACE(`name`, \'Referers_\', \'Referrers_\') WHERE `name` LIKE \'Referers_%\''] = false;
}
}
$errorCodeTableNotFound = '1146';
// Rename custom segments containing Referers segments
$sql['UPDATE `' . Common::prefixTable('segment') . '` SET `definition`=REPLACE(`definition`, \'referer\', \'referrer\') WHERE `definition` LIKE \'%referer%\''] = $errorCodeTableNotFound;
// Rename Referrers reports within scheduled reports
$sql['UPDATE `' . Common::prefixTable('report') . '` SET `reports`=REPLACE(`reports`, \'Referer\', \'Referrer\') WHERE `reports` LIKE \'%Referer%\''] = $errorCodeTableNotFound;
// Rename Referrers widgets in custom dashboards
$sql['UPDATE `' . Common::prefixTable('user_dashboard') . '` SET `layout`=REPLACE(`layout`, \'Referer\', \'Referrer\') WHERE `layout` LIKE \'%Referer%\''] = $errorCodeTableNotFound;
$sql['UPDATE `' . Common::prefixTable('option') . '` SET `option_name` = \'version_ScheduledReports\' WHERE `option_name` = \'version_PDFReports\' '] = '1062'; // http://forum.piwik.org/read.php?2,106895
return $sql;
}
public function doUpdate(Updater $updater)
{
// delete schema version_
Option::delete('version_Referers');
... [truncated, 15 more lines] ...
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.0-a13.php",
"description": "PHP module for 2.0 a13",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "2.4 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.0-a13.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.0-a17.php (Php) 1.0 KB 2016-05-21
PHP module for 2.0 a17
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Filesystem;
use Piwik\Updates;
use Piwik\Updater;
/**
*/
class Updates_2_0_a17 extends Updates
{
public function doUpdate(Updater $updater)
{
$errors = array();
// Deleting old plugins
$obsoleteDirectories = array(
PIWIK_INCLUDE_PATH . '/plugins/Referers',
PIWIK_INCLUDE_PATH . '/plugins/PDFReports',
);
foreach ($obsoleteDirectories as $dir) {
if (file_exists($dir)) {
Filesystem::unlinkRecursive($dir, true);
}
if (file_exists($dir)) {
$errors[] = "Please delete this directory manually (eg. using your FTP software): $dir \n";
}
}
if (!empty($errors)) {
throw new \Exception("Warnings during the update: <br>" . implode("<br>", $errors));
}
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.0-a17.php",
"description": "PHP module for 2.0 a17",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "1.0 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.0-a17.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.0-a7.php (Php) 955 bytes 2016-05-21
PHP module for 2.0 a7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_2_0_a7 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
return array(
// ignore existing column name error (1060)
'ALTER TABLE ' . Common::prefixTable('logger_message')
. " ADD COLUMN tag VARCHAR(50) NULL AFTER idlogger_message" => 1060,
'ALTER TABLE ' . Common::prefixTable('logger_message')
. " ADD COLUMN level TINYINT AFTER timestamp" => 1060,
);
}
public function doUpdate(Updater $updater)
{
// add tag & level columns to logger_message table
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.0-a7.php",
"description": "PHP module for 2.0 a7",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "955 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.0-a7.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.0-b10.php (Php) 445 bytes 2016-05-21
PHP module for 2.0 b10
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Updates;
use Piwik\Updater;
/**
*/
class Updates_2_0_b10 extends Updates
{
public function doUpdate(Updater $updater)
{
parent::deletePluginFromConfigFile('Referers');
parent::deletePluginFromConfigFile('PDFReports');
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.0-b10.php",
"description": "PHP module for 2.0 b10",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "445 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.0-b10.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.0-b13.php (Php) 1021 bytes 2016-05-21
PHP module for 2.0 b13
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Filesystem;
use Piwik\Updates;
use Piwik\Updater;
/**
*/
class Updates_2_0_b13 extends Updates
{
public function doUpdate(Updater $updater)
{
$errors = array();
// Deleting old libs
$obsoleteDirectories = array(
PIWIK_INCLUDE_PATH . '/libs/Smarty',
PIWIK_INCLUDE_PATH . '/libs/Event',
);
foreach ($obsoleteDirectories as $dir) {
if (file_exists($dir)) {
Filesystem::unlinkRecursive($dir, true);
}
if (file_exists($dir)) {
$errors[] = "Please delete this directory manually (eg. using your FTP software): $dir \n";
}
}
if (!empty($errors)) {
throw new \Exception("Warnings during the update: <br>" . implode("<br>", $errors));
}
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.0-b13.php",
"description": "PHP module for 2.0 b13",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "1021 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.0-b13.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.0-b3.php (Php) 1.2 KB 2016-05-21
PHP module for 2.0 b3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_2_0_b3 extends Updates
{
public static function isMajorUpdate()
{
return true;
}
public function getMigrationQueries(Updater $updater)
{
return array(
'ALTER TABLE ' . Common::prefixTable('log_visit')
. " ADD COLUMN visit_total_events SMALLINT(5) UNSIGNED NOT NULL AFTER visit_total_searches" => 1060,
'ALTER TABLE ' . Common::prefixTable('log_link_visit_action')
. " ADD COLUMN idaction_event_category INTEGER(10) UNSIGNED AFTER idaction_name_ref,
ADD COLUMN idaction_event_action INTEGER(10) UNSIGNED AFTER idaction_event_category" => 1060,
);
}
public function doUpdate(Updater $updater)
{
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
try {
\Piwik\Plugin\Manager::getInstance()->activatePlugin('Events');
} catch (\Exception $e) {
}
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.0-b3.php",
"description": "PHP module for 2.0 b3",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "1.2 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.0-b3.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.0-b9.php (Php) 736 bytes 2016-05-21
PHP module for 2.0 b9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Site;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_2_0_b9 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
return array(
"ALTER TABLE `" . Common::prefixTable('site')
. "` ADD `type` VARCHAR(255) NOT NULL DEFAULT '". Site::DEFAULT_SITE_TYPE ."' AFTER `group` " => 1060,
);
}
public function doUpdate(Updater $updater)
{
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.0-b9.php",
"description": "PHP module for 2.0 b9",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "736 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.0-b9.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.0-rc1.php (Php) 466 bytes 2016-05-21
PHP module for 2.0 rc1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Updates;
use Piwik\Updater;
/**
*/
class Updates_2_0_rc1 extends Updates
{
public function doUpdate(Updater $updater)
{
try {
\Piwik\Plugin\Manager::getInstance()->activatePlugin('Morpheus');
} catch (\Exception $e) {
}
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.0-rc1.php",
"description": "PHP module for 2.0 rc1",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "466 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.0-rc1.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.0.3-b7.php (Php) 1.8 KB 2016-05-21
PHP module for 2.0.3 b7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Filesystem;
use Piwik\Plugins\PrivacyManager\DoNotTrackHeaderChecker;
use Piwik\Plugins\PrivacyManager\IPAnonymizer;
use Piwik\Updates;
use Piwik\Updater;
/**
*/
class Updates_2_0_3_b7 extends Updates
{
public function doUpdate(Updater $updater)
{
$errors = array();
try {
$checker = new DoNotTrackHeaderChecker();
// enable DoNotTrack check in PrivacyManager if DoNotTrack plugin was enabled
if (\Piwik\Plugin\Manager::getInstance()->isPluginActivated('DoNotTrack')) {
$checker->activate();
}
// enable IP anonymization if AnonymizeIP plugin was enabled
if (\Piwik\Plugin\Manager::getInstance()->isPluginActivated('AnonymizeIP')) {
IPAnonymizer::activate();
}
} catch (\Exception $ex) {
// pass
}
// disable & delete old plugins
$oldPlugins = array('DoNotTrack', 'AnonymizeIP');
foreach ($oldPlugins as $plugin) {
try {
\Piwik\Plugin\Manager::getInstance()->deactivatePlugin($plugin);
} catch (\Exception $e) {
}
$dir = PIWIK_INCLUDE_PATH . "/plugins/$plugin";
... [truncated, 15 more lines] ...
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.0.3-b7.php",
"description": "PHP module for 2.0.3 b7",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "1.8 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.0.3-b7.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.0.4-b5.php (Php) 2.7 KB 2016-05-21
PHP module for 2.0.4 b5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Config;
use Piwik\Date;
use Piwik\Db;
use Piwik\Plugins\UsersManager\API as UsersManagerApi;
use Piwik\Updater;
use Piwik\UpdaterErrorException;
use Piwik\Updates;
/**
*/
class Updates_2_0_4_b5 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
return array(
// ignore existing column name error (1060)
'ALTER TABLE ' . Common::prefixTable('user')
. " ADD COLUMN `superuser_access` tinyint(2) unsigned NOT NULL DEFAULT '0' AFTER token_auth" => 1060,
);
}
public function doUpdate(Updater $updater)
{
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
try {
self::migrateConfigSuperUserToDb();
} catch (\Exception $e) {
throw new UpdaterErrorException($e->getMessage());
}
}
private static function migrateConfigSuperUserToDb()
{
$config = Config::getInstance();
if (!$config->existsLocalConfig()) {
return;
... [truncated, 46 more lines] ...
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.0.4-b5.php",
"description": "PHP module for 2.0.4 b5",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "2.7 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.0.4-b5.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.0.4-b7.php (Php) 1.7 KB 2016-05-21
PHP module for 2.0.4 b7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Option;
use Piwik\Plugins\MobileMessaging\MobileMessaging;
use Piwik\Plugins\UsersManager\API as UsersManagerApi;
use Piwik\UpdaterErrorException;
use Piwik\Updates;
use Piwik\Updater;
/**
*/
class Updates_2_0_4_b7 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
return array();
}
public function doUpdate(Updater $updater)
{
try {
self::migrateExistingMobileMessagingOptions();
} catch (\Exception $e) {
throw new UpdaterErrorException($e->getMessage());
}
}
private static function migrateExistingMobileMessagingOptions()
{
if (Option::get(MobileMessaging::DELEGATED_MANAGEMENT_OPTION) == 'true') {
return;
}
// copy $superUserLogin_MobileMessagingSettings -> _MobileMessagingSettings as settings are managed globally
$optionName = MobileMessaging::USER_SETTINGS_POSTFIX_OPTION;
$superUsers = UsersManagerApi::getInstance()->getUsersHavingSuperUserAccess();
if (empty($superUsers)) {
return;
}
... [truncated, 20 more lines] ...
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.0.4-b7.php",
"description": "PHP module for 2.0.4 b7",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "1.7 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.0.4-b7.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.0.4-b8.php (Php) 2.1 KB 2016-05-21
PHP module for 2.0.4 b8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Config;
use Piwik\Plugins\CoreAdminHome\CustomLogo;
use Piwik\Plugins\PrivacyManager\Config as PrivacyManagerConfig;
use Piwik\UpdaterErrorException;
use Piwik\Updates;
use Piwik\Updater;
/**
*/
class Updates_2_0_4_b8 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
return array();
}
public function doUpdate(Updater $updater)
{
try {
$config = Config::getInstance();
self::migrateBrandingConfig($config);
self::migratePrivacyManagerConfig($config, new PrivacyManagerConfig());
$config->forceSave();
} catch (\Exception $e) {
throw new UpdaterErrorException($e->getMessage());
}
}
private static function migrateBrandingConfig(Config $config)
{
$useCustomLogo = self::getValueAndDelete($config, 'branding', 'use_custom_logo');
$customLogo = new CustomLogo();
$useCustomLogo ? $customLogo->enable() : $customLogo->disable();
}
private static function migratePrivacyManagerConfig(Config $oldConfig, PrivacyManagerConfig $newConfig)
... [truncated, 28 more lines] ...
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.0.4-b8.php",
"description": "PHP module for 2.0.4 b8",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "2.1 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.0.4-b8.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.1.1-b11.php (Php) 5.6 KB 2016-05-21
PHP module for 2.1.1 b11
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
namespace Piwik\Updates;
use Piwik\ArchiveProcessor\Rules;
use Piwik\DataAccess\ArchiveWriter;
use Piwik\Date;
use Piwik\Db\BatchInsert;
use Piwik\Db;
use Piwik\Plugins\VisitFrequency\API as VisitFrequencyApi;
use Piwik\Segment;
use Piwik\Updater;
use Piwik\Updates;
/**
*/
class Updates_2_1_1_b11 extends Updates
{
public function doUpdate(Updater $updater)
{
$returningMetrics = array(
'nb_visits_returning',
'nb_actions_returning',
'max_actions_returning',
'sum_visit_length_returning',
'bounce_count_returning',
'nb_visits_converted_returning',
'nb_uniq_visitors_returning'
);
$now = Date::factory('now')->getDatetime();
$archiveNumericTables = Db::get()->fetchCol("SHOW TABLES LIKE '%archive_numeric%'");
// for each numeric archive table, copy *_returning metrics to VisitsSummary metrics w/ the appropriate
// returning visit segment
foreach ($archiveNumericTables as $table) {
// get archives w/ *._returning
$sql = "SELECT idarchive, idsite, period, date1, date2 FROM $table
WHERE name IN ('" . implode("','", $returningMetrics) . "')
GROUP BY idarchive";
$idArchivesWithReturning = Db::fetchAll($sql);
// get archives for visitssummary returning visitor segment
$sql = "SELECT idarchive, idsite, period, date1, date2 FROM $table
... [truncated, 81 more lines] ...
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.1.1-b11.php",
"description": "PHP module for 2.1.1 b11",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "5.6 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.1.1-b11.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.10.0-b10.php (Php) 1.2 KB 2016-05-21
PHP module for 2.10.0 b10
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\DataAccess\ArchiveTableCreator;
use Piwik\Updater;
use Piwik\Updates;
class Updates_2_10_0_b10 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
$sqls = array();
$archiveTables = ArchiveTableCreator::getTablesArchivesInstalled();
$archiveBlobTables = array_filter($archiveTables, function ($name) {
return ArchiveTableCreator::getTypeFromTableName($name) == ArchiveTableCreator::BLOB_TABLE;
});
foreach ($archiveBlobTables as $table) {
$sqls["UPDATE " . $table . " SET name = 'DevicePlugins_plugin' WHERE name = 'UserSettings_plugin'"] = false;
}
return $sqls;
}
public function doUpdate(Updater $updater)
{
$pluginManager = \Piwik\Plugin\Manager::getInstance();
try {
$pluginManager->activatePlugin('DevicePlugins');
} catch (\Exception $e) {
}
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.10.0-b10.php",
"description": "PHP module for 2.10.0 b10",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "1.2 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.10.0-b10.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.10.0-b4.php (Php) 549 bytes 2016-05-21
PHP module for 2.10.0 b4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Updates;
use Piwik\Updater;
/**
* Update for version 2.10.0-b4.
*/
class Updates_2_10_0_b4 extends Updates
{
public function doUpdate(Updater $updater)
{
$pluginManager = \Piwik\Plugin\Manager::getInstance();
try {
$pluginManager->activatePlugin('BulkTracking');
} catch (\Exception $e) {
}
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.10.0-b4.php",
"description": "PHP module for 2.10.0 b4",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "549 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.10.0-b4.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.10.0-b5.php (Php) 10.0 KB 2016-05-21
PHP module for 2.10.0 b5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\DataAccess\ArchiveTableCreator;
use Piwik\DataTable;
use Piwik\Db;
use Piwik\Updater;
use Piwik\Updates;
use Piwik\Plugins\Dashboard\Model as DashboardModel;
/**
* This Update script will update all browser and os archives of UserSettings and DevicesDetection plugin
*
* In the future only DevicesDetection will handle browser and os archives, so we try to rename all existing archives
* of UserSettings plugin to their corresponding archive name in DevicesDetection plugin:
* - *UserSettings_browser* will now be *DevicesDetection_browserVersions*
* - *UserSettings_os* will now be *DevicesDetection_osVersions*
*
* Unlike DevicesDetection plugin, the UserSettings plugin did not store archives holding the os and browser data without
* their version number. The "version-less" reports were always generated out of the "version-containing" archives .
* For big archives (month/year) that ment that some of the data was truncated, due to the datatable entry limit.
* To avoid that data loss / inaccuracy in the future, DevicesDetection plugin will also store archives without the version.
* For data archived after DevicesDetection plugin was enabled, those archive already exist. As we are removing the
* UserSettings reports, there is a fallback in DevicesDetection API to build the report out of the datatable with versions.
*
* NOTE: Some archives might not contain "all" data.
* That might have happened directly after the day DevicesDetection plugin was enabled. For the days before, there were
* no archives calculated. So week/month/year archives will only contain data for the days, where archives were generated
* To find a date after which it is safe to use DevicesDetection archives we need to find the first day-archive that
* contains DevicesDetection data. Day archives will always contain full data, but week/month/year archives may not.
* So we need to recreate those week/month/year archives.
*/
class Updates_2_10_0_b5 extends Updates
{
public static $archiveBlobTables;
public function getMigrationQueries(Updater $updater)
{
$sqls = array('# ATTENTION: This update script will execute some more SQL queries than that below as it is necessary to rebuilt some archives #' => false);
// update scheduled reports to use new plugin
... [truncated, 159 more lines] ...
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.10.0-b5.php",
"description": "PHP module for 2.10.0 b5",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "10.0 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.10.0-b5.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.10.0-b7.php (Php) 1.1 KB 2016-05-21
PHP module for 2.10.0 b7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\DataAccess\ArchiveTableCreator;
use Piwik\Updater;
use Piwik\Updates;
class Updates_2_10_0_b7 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
$sqls = array();
$archiveTables = ArchiveTableCreator::getTablesArchivesInstalled();
$archiveBlobTables = array_filter($archiveTables, function ($name) {
return ArchiveTableCreator::getTypeFromTableName($name) == ArchiveTableCreator::BLOB_TABLE;
});
foreach ($archiveBlobTables as $table) {
$sqls["UPDATE " . $table . " SET name = 'Resolution_resolution' WHERE name = 'UserSettings_resolution'"] = false;
$sqls["UPDATE " . $table . " SET name = 'Resolution_configuration' WHERE name = 'UserSettings_configuration'"] = false;
}
return $sqls;
}
public function doUpdate(Updater $updater)
{
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.10.0-b7.php",
"description": "PHP module for 2.10.0 b7",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "1.1 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.10.0-b7.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.10.0-b8.php (Php) 505 bytes 2016-05-21
PHP module for 2.10.0 b8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Updates;
use Piwik\Updater;
class Updates_2_10_0_b8 extends Updates
{
public function doUpdate(Updater $updater)
{
$pluginManager = \Piwik\Plugin\Manager::getInstance();
try {
$pluginManager->activatePlugin('Resolution');
} catch (\Exception $e) {
}
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.10.0-b8.php",
"description": "PHP module for 2.10.0 b8",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "505 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.10.0-b8.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.11.0-b2.php (Php) 2.1 KB 2016-05-21
PHP module for 2.11.0 b2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Db;
use Piwik\Piwik;
use Piwik\Updater;
use Piwik\Updates;
use Piwik\Plugins\Dashboard\Model as DashboardModel;
/**
* Update for version 2.11.0-b2.
*/
class Updates_2_11_0_b2 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
$sqls = array();
// update dashboard to use new ecommerce widgets, they were moved from goals plugin to ecommerce
$oldWidgets = array(
array('module' => 'Goals', 'action' => 'getEcommerceLog', 'params' => array()),
array('module' => 'Goals', 'action' => 'widgetGoalReport', 'params' => array('idGoal' => Piwik::LABEL_ID_GOAL_IS_ECOMMERCE_ORDER)),
);
$newWidgets = array(
array('module' => 'Ecommerce', 'action' => 'getEcommerceLog', 'params' => array()),
array('module' => 'Ecommerce', 'action' => 'widgetGoalReport', 'params' => array('idGoal' => Piwik::LABEL_ID_GOAL_IS_ECOMMERCE_ORDER)),
);
$allDashboards = Db::get()->fetchAll(sprintf("SELECT * FROM %s", Common::prefixTable('user_dashboard')));
foreach ($allDashboards as $dashboard) {
$dashboardLayout = json_decode($dashboard['layout']);
$dashboardLayout = DashboardModel::replaceDashboardWidgets($dashboardLayout, $oldWidgets, $newWidgets);
$newLayout = json_encode($dashboardLayout);
if ($newLayout != $dashboard['layout']) {
$sqls["UPDATE " . Common::prefixTable('user_dashboard') . " SET layout = '".addslashes($newLayout)."' WHERE iddashboard = ".$dashboard['iddashboard']] = false;
}
}
... [truncated, 16 more lines] ...
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.11.0-b2.php",
"description": "PHP module for 2.11.0 b2",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "2.1 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.11.0-b2.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.11.0-b4.php (Php) 1.2 KB 2016-05-21
PHP module for 2.11.0 b4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\DataAccess\ArchiveTableCreator;
use Piwik\Updater;
use Piwik\Updates;
class Updates_2_11_0_b4 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
$sqls = array();
$archiveTables = ArchiveTableCreator::getTablesArchivesInstalled();
$archiveBlobTables = array_filter($archiveTables, function ($name) {
return ArchiveTableCreator::getTypeFromTableName($name) == ArchiveTableCreator::BLOB_TABLE;
});
foreach ($archiveBlobTables as $table) {
$sqls["UPDATE " . $table . " SET name = 'UserLanguage_language' WHERE name = 'UserSettings_language'"] = false;
}
return $sqls;
}
public function doUpdate(Updater $updater)
{
$pluginManager = \Piwik\Plugin\Manager::getInstance();
try {
$pluginManager->activatePlugin('UserLanguage');
} catch (\Exception $e) {
}
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.11.0-b4.php",
"description": "PHP module for 2.11.0 b4",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "1.2 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.11.0-b4.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.11.0-b5.php (Php) 469 bytes 2016-05-21
PHP module for 2.11.0 b5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
namespace Piwik\Updates;
use Piwik\Plugin\Manager;
use Piwik\Updates;
use Piwik\Updater;
class Updates_2_11_0_b5 extends Updates
{
public function doUpdate(Updater $updater)
{
try {
Manager::getInstance()->activatePlugin('Monolog');
} catch (\Exception $e) {
}
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.11.0-b5.php",
"description": "PHP module for 2.11.0 b5",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "469 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.11.0-b5.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.11.1-b4.php (Php) 897 bytes 2016-05-21
PHP module for 2.11.1 b4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Config;
use Piwik\Development;
use Piwik\Updates;
use Piwik\Updater;
class Updates_2_11_1_b4 extends Updates
{
/**
* Here you can define any action that should be performed during the update. For instance executing SQL statements,
* renaming config entries, updating files, etc.
*/
public function doUpdate(Updater $updater)
{
if (!Development::isEnabled()) {
return;
}
$config = Config::getInstance();
$dbTests = $config->database_tests;
if ($dbTests['username'] === '@USERNAME@') {
$dbTests['username'] = 'root';
}
$config->database_tests = $dbTests;
$config->forceSave();
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.11.1-b4.php",
"description": "PHP module for 2.11.1 b4",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "897 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.11.1-b4.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.13.0-b3.php (Php) 506 bytes 2016-05-21
PHP module for 2.13.0 b3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Updater;
use Piwik\Updates;
class Updates_2_13_0_b3 extends Updates
{
public function doUpdate(Updater $updater)
{
$pluginManager = \Piwik\Plugin\Manager::getInstance();
try {
$pluginManager->activatePlugin('Diagnostics');
} catch (\Exception $e) {
}
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.13.0-b3.php",
"description": "PHP module for 2.13.0 b3",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "506 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.13.0-b3.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.13.1.php (Php) 1.1 KB 2016-05-21
PHP module for 2.13.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Updater;
use Piwik\Updates;
/**
* Update for version 2.13.1.
*/
class Updates_2_13_1 extends Updates
{
/**
* Here you can define one or multiple SQL statements that should be executed during the update.
* @return array
*/
public function getMigrationQueries(Updater $updater)
{
$optionTable = Common::prefixTable('option');
$removeEmptyDefaultReportsSql = "delete from `$optionTable` where option_name like '%defaultReport%' and option_value=''";
return array(
$removeEmptyDefaultReportsSql => false
);
}
/**
* Here you can define any action that should be performed during the update. For instance executing SQL statements,
* renaming config entries, updating files, etc.
*/
public function doUpdate(Updater $updater)
{
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.13.1.php",
"description": "PHP module for 2.13.1",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "1.1 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.13.1.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.14.0-b1.php (Php) 1.0 KB 2016-05-21
PHP module for 2.14.0 b1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Updater;
use Piwik\Updates;
use Piwik\Plugin\Manager;
class Updates_2_14_0_b1 extends Updates
{
public function doUpdate(Updater $updater)
{
$this->uninstallPlugin('UserSettings');
}
private function uninstallPlugin($plugin)
{
$pluginManager = Manager::getInstance();
if ($pluginManager->isPluginInstalled($plugin)) {
if ($pluginManager->isPluginActivated($plugin)) {
$pluginManager->deactivatePlugin($plugin);
}
$pluginManager->unloadPlugin($plugin);
$pluginManager->uninstallPlugin($plugin);
} else {
$this->makeSurePluginIsRemovedFromFilesystem($plugin);
}
}
private function makeSurePluginIsRemovedFromFilesystem($plugin)
{
Manager::deletePluginFromFilesystem($plugin);
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.14.0-b1.php",
"description": "PHP module for 2.14.0 b1",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "1.0 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.14.0-b1.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.14.0-b2.php (Php) 1.1 KB 2016-05-21
PHP module for 2.14.0 b2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Updater;
use Piwik\Updates;
use Piwik\Db;
class Updates_2_14_0_b2 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
$dbSettings = new Db\Settings();
$engine = $dbSettings->getEngine();
$table = Common::prefixTable('site_setting');
$sqlarray = array(
"DROP TABLE IF EXISTS `$table`" => false,
"CREATE TABLE `$table` (
idsite INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`setting_name` VARCHAR(255) NOT NULL,
`setting_value` LONGTEXT NOT NULL,
PRIMARY KEY(idsite, setting_name)
) ENGINE=$engine DEFAULT CHARSET=utf8" => 1050,
);
return $sqlarray;
}
public function doUpdate(Updater $updater)
{
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.14.0-b2.php",
"description": "PHP module for 2.14.0 b2",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "1.1 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.14.0-b2.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.14.2.php (Php) 4.1 KB 2016-05-21
PHP module for 2.14.2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\DbHelper;
use Piwik\Option;
use Piwik\Plugin\Dimension\ActionDimension;
use Piwik\Plugin\Dimension\ConversionDimension;
use Piwik\Plugin\Dimension\VisitDimension;
use Piwik\Tracker\Visit;
use Piwik\Updater;
use Piwik\Updates;
/**
* Update for version 2.14.2.
*/
class Updates_2_14_2 extends Updates
{
/**
* Removes option entries for columns that are marked as installed but are actually no longer installed due to
* a bug in previous versions where the option entries were not correctly removed.
*
* @param Updater $updater
* @return array
*/
public function getMigrationQueries(Updater $updater)
{
$visitSqls = self::getSqlsThatRemoveOptionEntriesOfNotActuallyInstalledColumns(VisitDimension::INSTALLER_PREFIX, 'log_visit');
$actionSqls = self::getSqlsThatRemoveOptionEntriesOfNotActuallyInstalledColumns(ActionDimension::INSTALLER_PREFIX, 'log_link_visit_action');
$conversionSqls = self::getSqlsThatRemoveOptionEntriesOfNotActuallyInstalledColumns(ConversionDimension::INSTALLER_PREFIX, 'log_conversion');
$sqls = array();
foreach ($visitSqls as $sql) {
$sqls[$sql] = false;
}
foreach ($actionSqls as $sql) {
$sqls[$sql] = false;
}
foreach ($conversionSqls as $sql) {
... [truncated, 75 more lines] ...
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.14.2.php",
"description": "PHP module for 2.14.2",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "4.1 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.14.2.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.15.0-b12.php (Php) 1.1 KB 2016-05-21
PHP module for 2.15.0 b12
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Config;
use Piwik\UpdateCheck;
use Piwik\Updater;
use Piwik\Updates;
class Updates_2_15_0_b12 extends Updates
{
public function doUpdate(Updater $updater)
{
$this->migrateBetaUpgradesToReleaseChannel();
}
private function migrateBetaUpgradesToReleaseChannel()
{
$config = Config::getInstance();
$debug = $config->Debug;
if (array_key_exists('allow_upgrades_to_beta', $debug)) {
$allowUpgradesToBeta = 1 == $debug['allow_upgrades_to_beta'];
unset($debug['allow_upgrades_to_beta']);
$general = $config->General;
if ($allowUpgradesToBeta) {
$general['release_channel'] = 'latest_beta';
} else {
$general['release_channel'] = 'latest_stable';
}
$config->Debug = $debug;
$config->General = $general;
$config->forceSave();
}
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.15.0-b12.php",
"description": "PHP module for 2.15.0 b12",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "1.1 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.15.0-b12.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.15.0-b16.php (Php) 1.1 KB 2016-05-21
PHP module for 2.15.0 b16
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Plugin\Manager;
use Piwik\Updater;
use Piwik\Updates;
class Updates_2_15_0_b16 extends Updates
{
public function doUpdate(Updater $updater)
{
$this->uninstallPlugin('LeftMenu');
$this->uninstallPlugin('ZenMode');
}
private function uninstallPlugin($plugin)
{
$pluginManager = Manager::getInstance();
if ($pluginManager->isPluginInstalled($plugin)) {
if ($pluginManager->isPluginActivated($plugin)) {
$pluginManager->deactivatePlugin($plugin);
}
$pluginManager->unloadPlugin($plugin);
$pluginManager->uninstallPlugin($plugin);
} else {
$this->makeSurePluginIsRemovedFromFilesystem($plugin);
}
}
private function makeSurePluginIsRemovedFromFilesystem($plugin)
{
Manager::deletePluginFromFilesystem($plugin);
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.15.0-b16.php",
"description": "PHP module for 2.15.0 b16",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "1.1 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.15.0-b16.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.15.0-b17.php (Php) 1.0 KB 2016-05-21
PHP module for 2.15.0 b17
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Config;
use Piwik\Updater;
use Piwik\Updates;
/**
* Update for version 2.15.0-b17.
*/
class Updates_2_15_0_b17 extends Updates
{
/**
* Perform the incremental version update.
*
* This method should preform all updating logic. If you define queries in an overridden `getMigrationQueries()`
* method, you must call {@link Updater::executeMigrationQueries()} here.
*
* See {@link Updates} for an example.
*
* @param Updater $updater
*/
public function doUpdate(Updater $updater)
{
$this->removeDeprecatedDebugConfig('enable_measure_piwik_usage_in_idsite');
}
private function removeDeprecatedDebugConfig($name)
{
$config = Config::getInstance();
$debug = $config->Debug;
unset($debug[$name]);
$config->Debug = $debug;
$config->forceSave();
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.15.0-b17.php",
"description": "PHP module for 2.15.0 b17",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "1.0 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.15.0-b17.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.15.0-b20.php (Php) 1013 bytes 2016-05-21
PHP module for 2.15.0 b20
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Plugin;
use Piwik\Updater;
use Piwik\Updates;
/**
* Update for version 2.15.0-b20.
*/
class Updates_2_15_0_b20 extends Updates
{
/**
* Perform the incremental version update.
*
* This method should preform all updating logic. If you define queries in an overridden `getMigrationQueries()`
* method, you must call {@link Updater::executeMigrationQueries()} here.
*
* See {@link Updates} for an example.
*
* @param Updater $updater
*/
public function doUpdate(Updater $updater)
{
$this->makeSurePluginIsRemovedFromFilesystem('ZenMode');
$this->makeSurePluginIsRemovedFromFilesystem('LeftMenu');
}
private function makeSurePluginIsRemovedFromFilesystem($plugin)
{
Plugin\Manager::deletePluginFromFilesystem($plugin);
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.15.0-b20.php",
"description": "PHP module for 2.15.0 b20",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "1013 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.15.0-b20.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.15.0-b3.php (Php) 739 bytes 2016-05-21
PHP module for 2.15.0 b3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Updater;
use Piwik\Updates;
class Updates_2_15_0_b3 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
$updateSql = array(
'ALTER TABLE `' . Common::prefixTable('site')
. '` ADD COLUMN `exclude_unknown_urls` TINYINT(1) DEFAULT 0 AFTER `currency`' => array(1060)
);
return $updateSql;
}
public function doUpdate(Updater $updater)
{
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.15.0-b3.php",
"description": "PHP module for 2.15.0 b3",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "739 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.15.0-b3.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.15.0-b4.php (Php) 551 bytes 2016-05-21
PHP module for 2.15.0 b4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Plugins\Installation\ServerFilesGenerator;
use Piwik\Updates;
use Piwik\Updater;
/**
*/
class Updates_2_15_0_b4 extends Updates
{
public function doUpdate(Updater $updater)
{
// added .ttf whitelisted file for apache webserver
ServerFilesGenerator::deleteHtAccessFiles();
ServerFilesGenerator::createHtAccessFiles();
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.15.0-b4.php",
"description": "PHP module for 2.15.0 b4",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "551 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.15.0-b4.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.15.0.php (Php) 497 bytes 2016-05-21
PHP module for 2.15.0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
namespace Piwik\Updates;
use Piwik\Updater;
use Piwik\Updates;
class Updates_2_15_0 extends Updates
{
public function doUpdate(Updater $updater)
{
$pluginManager = \Piwik\Plugin\Manager::getInstance();
try {
$pluginManager->activatePlugin('Heartbeat');
} catch (\Exception $e) {
}
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.15.0.php",
"description": "PHP module for 2.15.0",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "497 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.15.0.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.16.0-rc2.php (Php) 620 bytes 2016-05-21
PHP module for 2.16.0 rc2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
namespace Piwik\Updates;
use Piwik\Updater;
use Piwik\Updates;
class Updates_2_16_0_rc2 extends Updates
{
public function doUpdate(Updater $updater)
{
$pluginManager = \Piwik\Plugin\Manager::getInstance();
$pluginName = 'PiwikPro';
try {
if (!$pluginManager->isPluginActivated($pluginName)) {
$pluginManager->activatePlugin($pluginName);
}
} catch (\Exception $e) {
}
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.16.0-rc2.php",
"description": "PHP module for 2.16.0 rc2",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "620 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.16.0-rc2.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.16.1-b3.php (Php) 550 bytes 2016-05-21
PHP module for 2.16.1 b3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Plugins\Installation\ServerFilesGenerator;
use Piwik\Updates;
use Piwik\Updater;
/**
*/
class Updates_2_16_1_b3 extends Updates
{
public function doUpdate(Updater $updater)
{
// added .eot whitelisted file for apache webserver
ServerFilesGenerator::deleteHtAccessFiles();
ServerFilesGenerator::createHtAccessFiles();
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.16.1-b3.php",
"description": "PHP module for 2.16.1 b3",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "550 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.16.1-b3.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.2.0-b15.php (Php) 644 bytes 2016-05-21
PHP module for 2.2.0 b15
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
namespace Piwik\Updates;
use Piwik\Updates;
use Piwik\Updater;
/**
*/
class Updates_2_2_0_b15 extends Updates
{
public function doUpdate(Updater $updater)
{
// This was added in the beta cycle and then removed
// if the file is there, it can cause bugs (we don't have an archiver in VisitFrequency anymore)
$path = PIWIK_INCLUDE_PATH . '/plugins/VisitFrequency/Archiver.php';
if (file_exists($path)) {
@unlink($path);
}
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.2.0-b15.php",
"description": "PHP module for 2.2.0 b15",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "644 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.2.0-b15.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.2.3-b6.php (Php) 466 bytes 2016-05-21
PHP module for 2.2.3 b6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Updates;
use Piwik\Updater;
/**
*/
class Updates_2_2_3_b6 extends Updates
{
public function doUpdate(Updater $updater)
{
try {
\Piwik\Plugin\Manager::getInstance()->activatePlugin('ZenMode');
} catch (\Exception $e) {
}
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.2.3-b6.php",
"description": "PHP module for 2.2.3 b6",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "466 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.2.3-b6.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.3.0-rc2.php (Php) 492 bytes 2016-05-21
PHP module for 2.3.0 rc2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Plugins\Installation\ServerFilesGenerator;
use Piwik\Updates;
use Piwik\Updater;
/**
*/
class Updates_2_3_0_rc2 extends Updates
{
public function doUpdate(Updater $updater)
{
ServerFilesGenerator::deleteHtAccessFiles();
ServerFilesGenerator::createHtAccessFiles();
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.3.0-rc2.php",
"description": "PHP module for 2.3.0 rc2",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "492 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.3.0-rc2.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.4.0-b1.php (Php) 658 bytes 2016-05-21
PHP module for 2.4.0 b1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Updates;
use Piwik\Updater;
class Updates_2_4_0_b1 extends Updates
{
public function doUpdate(Updater $updater)
{
try {
\Piwik\Plugin\Manager::getInstance()->activatePlugin('Morpheus');
} catch (\Exception $e) {
}
try {
\Piwik\Plugin\Manager::getInstance()->deactivatePlugin('Zeitgeist');
self::deletePluginFromConfigFile('Zeitgeist');
} catch (\Exception $e) {
}
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.4.0-b1.php",
"description": "PHP module for 2.4.0 b1",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "658 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.4.0-b1.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.4.0-b2.php (Php) 599 bytes 2016-05-21
PHP module for 2.4.0 b2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Plugins\Installation\ServerFilesGenerator;
use Piwik\Updates;
use Piwik\Updater;
/**
*/
class Updates_2_4_0_b2 extends Updates
{
public function doUpdate(Updater $updater)
{
ServerFilesGenerator::deleteWebConfigFiles();
ServerFilesGenerator::createWebConfigFiles();
ServerFilesGenerator::deleteHtAccessFiles();
ServerFilesGenerator::createHtAccessFiles();
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.4.0-b2.php",
"description": "PHP module for 2.4.0 b2",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "599 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.4.0-b2.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.4.0-b3.php (Php) 736 bytes 2016-05-21
PHP module for 2.4.0 b3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Updates;
use Piwik\Updater;
class Updates_2_4_0_b3 extends Updates
{
public function doUpdate(Updater $updater)
{
$pluginManager = \Piwik\Plugin\Manager::getInstance();
try {
$pluginManager->activatePlugin('LeftMenu');
} catch (\Exception $e) {
}
try {
$pluginManager->deactivatePlugin('Zeitgeist');
} catch (\Exception $e) {
}
try {
$pluginManager->uninstallPlugin('Zeitgeist');
} catch (\Exception $e) {
}
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.4.0-b3.php",
"description": "PHP module for 2.4.0 b3",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "736 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.4.0-b3.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.4.0-b4.php (Php) 767 bytes 2016-05-21
PHP module for 2.4.0 b4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Updates;
use Piwik\Updater;
class Updates_2_4_0_b4 extends Updates
{
public function doUpdate(Updater $updater)
{
$pluginManager = \Piwik\Plugin\Manager::getInstance();
$pluginNames = $pluginManager->getAllPluginsNames();
if (!in_array('Zeitgeist', $pluginNames)) {
return;
}
try {
$pluginManager->deactivatePlugin('Zeitgeist');
} catch (\Exception $e) {
}
try {
$pluginManager->uninstallPlugin('Zeitgeist');
} catch (\Exception $e) {
}
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.4.0-b4.php",
"description": "PHP module for 2.4.0 b4",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "767 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.4.0-b4.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.4.0-b6.php (Php) 509 bytes 2016-05-21
PHP module for 2.4.0 b6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Updates;
use Piwik\Updater;
class Updates_2_4_0_b6 extends Updates
{
public function doUpdate(Updater $updater)
{
$pluginManager = \Piwik\Plugin\Manager::getInstance();
try {
$pluginManager->activatePlugin('DevicesDetection');
} catch (\Exception $e) {
}
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.4.0-b6.php",
"description": "PHP module for 2.4.0 b6",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "509 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.4.0-b6.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.4.0-b8.php (Php) 667 bytes 2016-05-21
PHP module for 2.4.0 b8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Updater;
use Piwik\Updates;
class Updates_2_4_0_b8 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
return array(
"ALTER TABLE `" . Common::prefixTable('session')
. "` CHANGE `id` `id` VARCHAR( 255 ) NOT NULL " => false,
);
}
public function doUpdate(Updater $updater)
{
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.4.0-b8.php",
"description": "PHP module for 2.4.0 b8",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "667 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.4.0-b8.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.5.0-b1.php (Php) 891 bytes 2016-05-21
PHP module for 2.5.0 b1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Config;
use Piwik\Updates;
use Piwik\Updater;
class Updates_2_5_0_b1 extends Updates
{
public function doUpdate(Updater $updater)
{
self::updateConfig();
}
private static function updateConfig()
{
$config = Config::getInstance();
$debug = $config->Debug;
if (array_key_exists('disable_merged_assets', $debug)) {
$development = $config->Development;
$development['disable_merged_assets'] = $debug['disable_merged_assets'];
unset($debug['disable_merged_assets']);
$config->Debug = $debug;
$config->Development = $development;
$config->forceSave();
}
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.5.0-b1.php",
"description": "PHP module for 2.5.0 b1",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "891 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.5.0-b1.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.5.0-rc2.php (Php) 2.0 KB 2016-05-21
PHP module for 2.5.0 rc2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Filesystem;
use Piwik\Updates;
use Piwik\Updater;
/**
* Update for version 2.5.0-rc2.
*/
class Updates_2_5_0_rc2 extends Updates
{
public function doUpdate(Updater $updater)
{
$files = self::getFilesToDeleteIfOld();
foreach ($files as $file) {
$path = PIWIK_INCLUDE_PATH . $file;
if (file_exists($path)) {
if (function_exists('opcache_invalidate')) {
@opcache_invalidate($file, $force = true);
}
self::deleteIfLastModifiedBefore14August2014($path);
}
}
}
private static function deleteIfLastModifiedBefore14August2014($path)
{
$modifiedTime = filemtime($path);
if ($modifiedTime && $modifiedTime < 1408000000) {
Filesystem::deleteFileIfExists($path);
}
}
private static function getFilesToDeleteIfOld()
{
return array(
'/misc/others/test_cookies_GenerateHundredsWebsitesAndVisits.php',
... [truncated, 20 more lines] ...
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.5.0-rc2.php",
"description": "PHP module for 2.5.0 rc2",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "2.0 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.5.0-rc2.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.5.0-rc4.php (Php) 489 bytes 2016-05-21
PHP module for 2.5.0 rc4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Filesystem;
use Piwik\Tracker\Cache;
use Piwik\Updates;
use Piwik\Updater;
/**
* Update for version 2.5.0-rc4.
*/
class Updates_2_5_0_rc4 extends Updates
{
public function doUpdate(Updater $updater)
{
Cache::deleteTrackerCache();
Filesystem::clearPhpCaches();
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.5.0-rc4.php",
"description": "PHP module for 2.5.0 rc4",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "489 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.5.0-rc4.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.6.0-b1.php (Php) 687 bytes 2016-05-21
PHP module for 2.6.0 b1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Config;
use Piwik\Updates;
use Piwik\Updater;
/**
* Update for version 2.6.0-b1.
*/
class Updates_2_6_0_b1 extends Updates
{
/**
* Here you can define any action that should be performed during the update. For instance executing SQL statements,
* renaming config entries, updating files, etc.
*/
public function doUpdate(Updater $updater)
{
$config = Config::getInstance();
$config->Plugins_Tracker = array();
$config->forceSave();
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.6.0-b1.php",
"description": "PHP module for 2.6.0 b1",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "687 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.6.0-b1.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.7.0-b2.php (Php) 510 bytes 2016-05-21
PHP module for 2.7.0 b2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Updates;
use Piwik\Updater;
/**
*/
class Updates_2_7_0_b2 extends Updates
{
public function doUpdate(Updater $updater)
{
$pluginManager = \Piwik\Plugin\Manager::getInstance();
try {
$pluginManager->activatePlugin('Contents');
} catch (\Exception $e) {
}
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.7.0-b2.php",
"description": "PHP module for 2.7.0 b2",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "510 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.7.0-b2.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.7.0-b4.php (Php) 587 bytes 2016-05-21
PHP module for 2.7.0 b4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Updates;
use Piwik\Updater;
/**
*/
class Updates_2_7_0_b4 extends Updates
{
public function doUpdate(Updater $updater)
{
$pluginManager = \Piwik\Plugin\Manager::getInstance();
try {
$pluginManager->activatePlugin('Contents');
} catch (\Exception $e) {
}
}
public static function isMajorUpdate()
{
return true;
}
}
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.7.0-b4.php",
"description": "PHP module for 2.7.0 b4",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "587 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.7.0-b4.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.9.0-b1.php (Php) 2.8 KB 2016-05-21
PHP module for 2.9.0 b1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\Db;
use Piwik\Option;
use Piwik\Plugin\Manager;
use Piwik\Updater;
use Piwik\Updates;
class Updates_2_9_0_b1 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
$sql = array();
$sql = self::updateBrowserEngine($sql);
return $sql;
}
public function doUpdate(Updater $updater)
{
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
self::updateIPAnonymizationSettings();
try {
Manager::getInstance()->activatePlugin('TestRunner');
} catch (\Exception $e) {
}
}
private static function updateBrowserEngine($sql)
{
$sql[sprintf("ALTER TABLE `%s` ADD COLUMN `config_browser_engine` VARCHAR(10) NOT NULL", Common::prefixTable('log_visit'))] = 1060;
$browserEngineMatch = array(
'Trident' => array('IE'),
'Gecko' => array('NS', 'PX', 'FF', 'FB', 'CA', 'GA', 'KM', 'MO', 'SM', 'CO', 'FE', 'KP', 'KZ', 'TB'),
'KHTML' => array('KO'),
'WebKit' => array('SF', 'CH', 'OW', 'AR', 'EP', 'FL', 'WO', 'AB', 'IR', 'CS', 'FD', 'HA', 'MI', 'GE', 'DF', 'BB', 'BP', 'TI', 'CF', 'RK', 'B2', 'NF'),
'Presto' => array('OP'),
);
... [truncated, 40 more lines] ...
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.9.0-b1.php",
"description": "PHP module for 2.9.0 b1",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "2.8 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.9.0-b1.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}
🐘 2.9.0-b7.php (Php) 2.4 KB 2016-05-21
PHP module for 2.9.0 b7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52 | <?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
namespace Piwik\Updates;
use Piwik\Common;
use Piwik\DataAccess\ArchiveTableCreator;
use Piwik\Db;
use Piwik\Updater;
use Piwik\Updates;
class Updates_2_9_0_b7 extends Updates
{
public function getMigrationQueries(Updater $updater)
{
$sql = array();
$sql = self::addCreateSequenceTableQuery($sql);
$sql = self::addArchivingIdMigrationQueries($sql);
return $sql;
}
public function doUpdate(Updater $updater)
{
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
}
private static function addArchivingIdMigrationQueries($sql)
{
$tables = ArchiveTableCreator::getTablesArchivesInstalled();
foreach ($tables as $table) {
$type = ArchiveTableCreator::getTypeFromTableName($table);
if ($type === ArchiveTableCreator::NUMERIC_TABLE) {
$maxId = Db::fetchOne('SELECT MAX(idarchive) FROM ' . $table);
if (!empty($maxId)) {
$maxId = (int) $maxId + 500;
} else {
$maxId = 1;
}
$query = self::getQueryToCreateSequence($table, $maxId);
// refs #6696, ignores Integrity constraint violation: 1062 Duplicate entry 'piwik_archive_numeric_2010_01' for key 'PRIMARY'
... [truncated, 41 more lines] ...
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "2.9.0-b7.php",
"description": "PHP module for 2.9.0 b7",
"dateModified": "2016-05-21",
"dateCreated": "2025-03-23",
"contentSize": "2.4 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/2.9.0-b7.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/static/core/Updates/"
}