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:
Diffstat (limited to 'core/Updates/4.0.1-b1.php')
-rw-r--r--core/Updates/4.0.1-b1.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/Updates/4.0.1-b1.php b/core/Updates/4.0.1-b1.php
index 3f44780afe..852b3b934b 100644
--- a/core/Updates/4.0.1-b1.php
+++ b/core/Updates/4.0.1-b1.php
@@ -9,6 +9,7 @@
namespace Piwik\Updates;
+use Piwik\Common;
use Piwik\Config;
use Piwik\Container\StaticContainer;
use Piwik\DataAccess\ArchiveTableCreator;
@@ -35,6 +36,10 @@ class Updates_4_0_1_b1 extends PiwikUpdates
public function getMigrations(Updater $updater)
{
$migrations = [];
+
+ $table = Common::prefixTable('user_token_auth');
+ $migrations[] = $this->migration->db->sql('UPDATE ' . $table . ' SET hash_algo = "sha512" where hash_algo is null or hash_algo = "" ');
+
if (SettingsPiwik::isGitDeployment()) {
return $migrations;
}