shouldRun()) { return; } // if no config for the master key is set we set it explicitly to '0' in // order not to break old installations because the default changed to '1'. $configAlreadySet = $this->config->getAppValue('encryption', 'useMasterKey', 'not-set'); if ($configAlreadySet === 'not-set') { $this->config->setAppValue('encryption', 'useMasterKey', '0'); } } protected function shouldRun() { $appVersion = $this->config->getAppValue('encryption', 'installed_version', '0.0.0'); return version_compare($appVersion, '2.0.0', '<'); } }