diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-06-30 05:02:24 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-06-30 05:02:24 +0400 |
commit | 2a84fba50edb73f05b913dbbbb5671610f665587 (patch) | |
tree | f1e7a15e367320fc82c6e691979dd80cf03ef1cc /core/Columns | |
parent | 1492c180b17597c0a66da21607f632e1dc07115a (diff) |
remove debugging output again
Diffstat (limited to 'core/Columns')
-rw-r--r-- | core/Columns/Updates.php | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/core/Columns/Updates.php b/core/Columns/Updates.php index b172cbe092..16233c78ff 100644 --- a/core/Columns/Updates.php +++ b/core/Columns/Updates.php @@ -42,7 +42,7 @@ class Updates extends \Piwik\Updates $changingColumns = self::getUpdates(); foreach ($changingColumns as $table => $columns) { - $chunks = array_chunk($columns, 10); + $chunks = array_chunk($columns, 3); foreach ($chunks as $columnsToAlter) { $sqls["ALTER TABLE `" . Common::prefixTable($table) . "` " . implode(', ', $columnsToAlter)] = false; @@ -57,12 +57,6 @@ class Updates extends \Piwik\Updates */ public static function update() { - var_dump(Db::get()->query('SELECT @@max_allowed_packet')->fetchColumn() . ' max_allowed_packet'); - var_dump(Db::get()->query('SELECT @@wait_timeout')->fetchColumn() . ' wait_timeout'); - var_dump(Db::get()->query('SELECT @@GLOBAL.wait_timeout')->fetchColumn() . ' @@GLOBAL.wait_timeout'); - var_dump(Db::get()->query('SELECT @@LOCAL.wait_timeout')->fetchColumn() . ' @@LOCAL.wait_timeout'); - - $time = microtime(true); foreach (self::getSql() as $sql => $errorCode) { try { Db::exec($sql); @@ -72,10 +66,6 @@ class Updates extends \Piwik\Updates } } } - - $diff = microtime(true) - $time; - - echo $diff * 1000 . "ms"; } public static function setUpdater($updater) |