diff options
author | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-04-07 05:45:46 +0300 |
---|---|---|
committer | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-04-07 05:46:49 +0300 |
commit | 90372750b039ce0b2150d4d6b1279fecbb245465 (patch) | |
tree | 58e4f982758c017281a78b88567c65d5442b2f00 /core/FrontController.php | |
parent | 91ae0a456047582cc277577b7c533275b0b49e26 (diff) |
Ignore the error "the DB is in a newer version" when development mode is enabled
That happens a lot when switching branches.
Diffstat (limited to 'core/FrontController.php')
-rw-r--r-- | core/FrontController.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/FrontController.php b/core/FrontController.php index f9dd3259cb..e697985f1e 100644 --- a/core/FrontController.php +++ b/core/FrontController.php @@ -562,6 +562,11 @@ class FrontController extends Singleton */ private function throwIfPiwikVersionIsOlderThanDBSchema() { + // When developing this situation happens often when switching branches + if (Development::isEnabled()) { + return; + } + $updater = new Updater(); $dbSchemaVersion = $updater->getCurrentComponentVersion('core'); |