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:
authorThomas Steur <thomas.steur@googlemail.com>2014-07-11 07:39:50 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-07-11 07:39:50 +0400
commit2a9144c632f775d25c4faa3cb0b82391c013891a (patch)
tree6f8396862788932991242ced551a63161a6e7b31 /core/Updater.php
parent6ae5b6c6058768ce34a90f9bbffbc0d9e99b3d3f (diff)
just noticed I broke the installer when I was trying to fix the updater in c01d57bc17, this might work... basically the idea was ok but we should check for this only if the column actually already exists. If the column does not exist yet we need to make sure it will be installed
Diffstat (limited to 'core/Updater.php')
-rw-r--r--core/Updater.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/core/Updater.php b/core/Updater.php
index 79754172d9..2e2d4cc6ab 100644
--- a/core/Updater.php
+++ b/core/Updater.php
@@ -67,7 +67,7 @@ class Updater
* @return false|string
* @throws \Exception
*/
- private static function getCurrentRecordedComponentVersion($name)
+ public static function getCurrentRecordedComponentVersion($name)
{
try {
$currentVersion = Option::get(self::getNameInOptionTable($name));
@@ -303,11 +303,6 @@ class Updater
$currentVersion = self::getCurrentRecordedComponentVersion($name);
if (ColumnUpdater::isDimensionComponent($name)) {
- if ($currentVersion === false && ColumnUpdater::wasDimensionMovedFromCoreToPlugin($name, $version)) {
- self::recordComponentSuccessfullyUpdated($name, $version);
- continue;
- }
-
$isComponentOutdated = $currentVersion !== $version;
} else {
// note: when versionCompare == 1, the version in the DB is newer, we choose to ignore