migration = $factory; } 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; } $migrations[] = $this->migration->plugin->uninstall('ExampleTheme'); return $migrations; } public function doUpdate(Updater $updater) { $updater->executeMigrations(__FILE__, $this->getMigrations($updater)); } }