Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'core/Updates/0.2.10.php')
-rw-r--r--core/Updates/0.2.10.php81
1 files changed, 39 insertions, 42 deletions
diff --git a/core/Updates/0.2.10.php b/core/Updates/0.2.10.php
index a411c2ad4e..aece273630 100644
--- a/core/Updates/0.2.10.php
+++ b/core/Updates/0.2.10.php
@@ -14,59 +14,56 @@
*/
class Piwik_Updates_0_2_10 extends Piwik_Updates
{
- static function getSql($schema = 'Myisam')
- {
- return array(
- 'CREATE TABLE `'. Piwik_Common::prefixTable('option') .'` (
+ static function getSql($schema = 'Myisam')
+ {
+ return array(
+ 'CREATE TABLE `' . Piwik_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 )
- )' => false,
+ )' => false,
- // 0.1.7 [463]
- 'ALTER IGNORE TABLE `'. Piwik_Common::prefixTable('log_visit') .'`
+ // 0.1.7 [463]
+ 'ALTER IGNORE TABLE `' . Piwik_Common::prefixTable('log_visit') . '`
CHANGE `location_provider` `location_provider` VARCHAR( 100 ) DEFAULT NULL' => '1054',
- // 0.1.7 [470]
- 'ALTER TABLE `'. Piwik_Common::prefixTable('logger_api_call') .'`
+ // 0.1.7 [470]
+ 'ALTER TABLE `' . Piwik_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' => false,
- 'ALTER TABLE `'. Piwik_Common::prefixTable('logger_error') .'`
- CHANGE `message` `message` TEXT' => false,
- 'ALTER TABLE `'. Piwik_Common::prefixTable('logger_exception') .'`
- CHANGE `message` `message` TEXT' => false,
- 'ALTER TABLE `'. Piwik_Common::prefixTable('logger_message') .'`
- CHANGE `message` `message` TEXT' => false,
+ CHANGE `returned_value` `returned_value` TEXT' => false,
+ 'ALTER TABLE `' . Piwik_Common::prefixTable('logger_error') . '`
+ CHANGE `message` `message` TEXT' => false,
+ 'ALTER TABLE `' . Piwik_Common::prefixTable('logger_exception') . '`
+ CHANGE `message` `message` TEXT' => false,
+ 'ALTER TABLE `' . Piwik_Common::prefixTable('logger_message') . '`
+ CHANGE `message` `message` TEXT' => false,
- // 0.2.2 [489]
- 'ALTER IGNORE TABLE `'. Piwik_Common::prefixTable('site') .'`
- CHANGE `feedburnerName` `feedburnerName` VARCHAR( 100 ) DEFAULT NULL' => '1054',
- );
- }
+ // 0.2.2 [489]
+ 'ALTER IGNORE TABLE `' . Piwik_Common::prefixTable('site') . '`
+ CHANGE `feedburnerName` `feedburnerName` VARCHAR( 100 ) DEFAULT NULL' => '1054',
+ );
+ }
- static function update()
- {
- Piwik_Updater::updateDatabase(__FILE__, self::getSql());
+ static function update()
+ {
+ Piwik_Updater::updateDatabase(__FILE__, self::getSql());
- $obsoleteFile = '/plugins/ExamplePlugin/API.php';
- if(file_exists(PIWIK_INCLUDE_PATH . $obsoleteFile))
- {
- @unlink(PIWIK_INCLUDE_PATH . $obsoleteFile);
- }
+ $obsoleteFile = '/plugins/ExamplePlugin/API.php';
+ if (file_exists(PIWIK_INCLUDE_PATH . $obsoleteFile)) {
+ @unlink(PIWIK_INCLUDE_PATH . $obsoleteFile);
+ }
- $obsoleteDirectories = array(
- '/plugins/AdminHome',
- '/plugins/Home',
- '/plugins/PluginsAdmin',
- );
- foreach($obsoleteDirectories as $dir)
- {
- if(file_exists(PIWIK_INCLUDE_PATH . $dir))
- {
- Piwik::unlinkRecursive(PIWIK_INCLUDE_PATH . $dir, true);
- }
- }
- }
+ $obsoleteDirectories = array(
+ '/plugins/AdminHome',
+ '/plugins/Home',
+ '/plugins/PluginsAdmin',
+ );
+ foreach ($obsoleteDirectories as $dir) {
+ if (file_exists(PIWIK_INCLUDE_PATH . $dir)) {
+ Piwik::unlinkRecursive(PIWIK_INCLUDE_PATH . $dir, true);
+ }
+ }
+ }
}