From 545096a753680835b74d846d0e4220f134132a47 Mon Sep 17 00:00:00 2001 From: sbwalker Date: Fri, 14 Nov 2025 12:29:24 -0500 Subject: [PATCH] remove upgrade logic which removes Internal module/theme templates --- Oqtane.Server/Infrastructure/UpgradeManager.cs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/Oqtane.Server/Infrastructure/UpgradeManager.cs b/Oqtane.Server/Infrastructure/UpgradeManager.cs index f77edd50..d57e2eb7 100644 --- a/Oqtane.Server/Infrastructure/UpgradeManager.cs +++ b/Oqtane.Server/Infrastructure/UpgradeManager.cs @@ -99,24 +99,6 @@ namespace Oqtane.Infrastructure private void Upgrade_2_0_2(Tenant tenant, IServiceScope scope) { - if (tenant.Name == TenantNames.Master) - { - // remove Internal module template files as they are no longer supported - var internalTemplatePath = Utilities.PathCombine(_environment.WebRootPath, "Modules", "Templates", "Internal", Path.DirectorySeparatorChar.ToString()); - if (Directory.Exists(internalTemplatePath)) - { - try - { - Directory.Delete(internalTemplatePath, true); - } - catch (Exception ex) - { - // error deleting directory - _filelogger.LogError(Utilities.LogMessage(this, $"Oqtane Error: Error In 2.0.2 Upgrade Logic - {ex}")); - } - } - } - // initialize SiteGuid try {