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:
authorvipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2010-02-16 19:54:54 +0300
committervipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2010-02-16 19:54:54 +0300
commitece4e4cf3493a6ffe571a710fd0127b96d150a86 (patch)
tree5de4fd4adc5a35d386cb4ae5c644a873d9483e4c /plugins/Provider
parentbb3b2b1afed5a2590053a8ea23c29d520b918bdc (diff)
throw error if ALTER fails for reasons other than "column already exists"
Diffstat (limited to 'plugins/Provider')
-rw-r--r--plugins/Provider/Provider.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/Provider/Provider.php b/plugins/Provider/Provider.php
index 1260fc365e..c07fd45a37 100644
--- a/plugins/Provider/Provider.php
+++ b/plugins/Provider/Provider.php
@@ -51,7 +51,13 @@ class Piwik_Provider extends Piwik_Plugin
try {
Piwik_Exec($query);
}
- catch(Exception $e){}
+ catch(Exception $e) {
+ if(!Zend_Registry::get('db')->isErrNo($e, '1060'))
+ {
+ throw $e;
+ }
+ }
+
}
function uninstall()