diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-06-30 04:58:48 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-06-30 04:58:48 +0400 |
commit | 1492c180b17597c0a66da21607f632e1dc07115a (patch) | |
tree | 221d06955369a9503259fcd3b90718f86a14c24b /core/Columns | |
parent | 493d211eba375135b8b306cbe9dcd0705c3d9ff8 (diff) |
debugging test fails on travis
Diffstat (limited to 'core/Columns')
-rw-r--r-- | core/Columns/Updates.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/core/Columns/Updates.php b/core/Columns/Updates.php index 16233c78ff..b172cbe092 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, 3); + $chunks = array_chunk($columns, 10); foreach ($chunks as $columnsToAlter) { $sqls["ALTER TABLE `" . Common::prefixTable($table) . "` " . implode(', ', $columnsToAlter)] = false; @@ -57,6 +57,12 @@ 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); @@ -66,6 +72,10 @@ class Updates extends \Piwik\Updates } } } + + $diff = microtime(true) - $time; + + echo $diff * 1000 . "ms"; } public static function setUpdater($updater) |