From beb4919d97718e59cb338f62da4e942aba144cad Mon Sep 17 00:00:00 2001 From: sbwalker Date: Fri, 19 Sep 2025 14:59:58 -0400 Subject: [PATCH] add ability to view Migration History --- .../OqtaneServiceCollectionExtensions.cs | 1 + .../Modules/Admin/SystemInfo/Index.razor | 434 ++++++++++-------- .../Modules/Admin/SystemInfo/Index.resx | 9 + .../Services/MigrationHistoryService.cs | 34 ++ .../Controllers/MigrationHistoryController.cs | 28 ++ .../OqtaneServiceCollectionExtensions.cs | 2 + .../Repository/Context/MasterDBContext.cs | 1 + .../Repository/MigrationHistoryRepository.cs | 25 + Oqtane.Shared/Models/MigrationHistory.cs | 16 + 9 files changed, 346 insertions(+), 204 deletions(-) create mode 100644 Oqtane.Client/Services/MigrationHistoryService.cs create mode 100644 Oqtane.Server/Controllers/MigrationHistoryController.cs create mode 100644 Oqtane.Server/Repository/MigrationHistoryRepository.cs create mode 100644 Oqtane.Shared/Models/MigrationHistory.cs diff --git a/Oqtane.Client/Extensions/OqtaneServiceCollectionExtensions.cs b/Oqtane.Client/Extensions/OqtaneServiceCollectionExtensions.cs index 96d68d37..82186385 100644 --- a/Oqtane.Client/Extensions/OqtaneServiceCollectionExtensions.cs +++ b/Oqtane.Client/Extensions/OqtaneServiceCollectionExtensions.cs @@ -56,6 +56,7 @@ namespace Microsoft.Extensions.DependencyInjection services.AddScoped(); services.AddScoped(); services.AddScoped(); + services.AddScoped(); services.AddScoped(); // providers diff --git a/Oqtane.Client/Modules/Admin/SystemInfo/Index.razor b/Oqtane.Client/Modules/Admin/SystemInfo/Index.razor index f4d347e9..ca32bf86 100644 --- a/Oqtane.Client/Modules/Admin/SystemInfo/Index.razor +++ b/Oqtane.Client/Modules/Admin/SystemInfo/Index.razor @@ -2,241 +2,267 @@ @inherits ModuleBase @inject ISystemService SystemService @inject IInstallationService InstallationService +@inject IMigrationHistoryService MigrationHistoryService @inject IStringLocalizer Localizer @inject IStringLocalizer SharedLocalizer - - -
-
- -
- +@if (_initialized) +{ + + +
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
-
- -
- +

+ + + +
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
-
- -
- +

+   + +

+ @Localizer["Swagger"]  + @Localizer["Endpoints"] + + +
+
+ +
+