210211212213214215216217218219220221222223224225226227228 }
// Makes sure that the uploaded files are compatible with the current database schema
if (!$this->getUpdates()->getIsCraftSchemaVersionCompatible()) {
$this->_unregisterDebugModule();
if ($request->getIsCpRequest()) {
$version = $this->getInfo()->version;
throw new HttpException(200, Craft::t('app', 'Craft CMS does not support backtracking to this version. Please update to Craft CMS {version} or later.', [
'version' => $version,
]));
}
throw new ServiceUnavailableHttpException();
}
// getIsCraftDbMigrationNeeded will return true if we're in the middle of a manual or auto-update for Craft itself.
// If we're in maintenance mode and it's not a site request, show the manual update template.