qa iteration 2

This commit is contained in:
master
2026-03-06 00:40:59 +02:00
parent 360485f556
commit 54753bfd41
5 changed files with 44 additions and 1 deletions

View File

@@ -2,6 +2,7 @@
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using StellaOps.Auth.ServerIntegration;
using StellaOps.Infrastructure.Postgres.Migrations;
using StellaOps.Auth.ServerIntegration.Tenancy;
using StellaOps.Configuration;
using StellaOps.Localization;
@@ -226,6 +227,13 @@ if (!string.IsNullOrWhiteSpace(bootstrapOptions.Storage.PostgresConnectionString
builder.Services.AddSingleton<IAdministrationTrustSigningStore, PostgresAdministrationTrustSigningStore>();
builder.Services.AddSingleton<IPlatformContextStore, PostgresPlatformContextStore>();
builder.Services.AddSingleton<ITranslationStore, PostgresTranslationStore>();
// Auto-migrate platform schemas on startup (release, platform, analytics, shared)
builder.Services.AddStartupMigrations<PlatformServiceOptions>(
schemaName: "release",
moduleName: "Platform.Release",
typeof(StellaOps.Platform.Database.MigrationModuleRegistry).Assembly,
options => options.Storage.PostgresConnectionString!);
}
else
{