Path: redb/redb.Tests.Integration/Tests/PostgresPro/PostgresProSchemaUpgradeTests.cs Snapshot: redb, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb Page: https://redbase.app/src/dev-2026-12-06/redb/redb.Tests.Integration/Tests/PostgresPro/PostgresProSchemaUpgradeTests.cs ---- using Microsoft.Extensions.DependencyInjection; using redb.Core.Extensions; using redb.Core.Pro.Extensions; using redb.Postgres.Pro.Extensions; using redb.Tests.Integration.Fixtures; using redb.Tests.Integration.Tests.Base; namespace redb.Tests.Integration.Tests.PostgresPro; /// /// The same upgrade contract as the Free suite, but started through AddRedbPro: an existing /// 3.x database must gain the V4 columns on the first start of a Pro build too. It did not - the Pro /// service skipped the module deployment entirely ("Pro uses its own C# PVT generator"), which is /// true of the module's FUNCTIONS but not of the DDL that ships in the same bundle, so /// _values._unique and its siblings were never created and start-up died on the first read of /// a scheme. Owns its own database and role: this suite deliberately damages the schema. /// public class PostgresProSchemaUpgradeTests : redb.Tests.Integration.Tests.Postgres.PostgresSchemaUpgradeTests { public PostgresProSchemaUpgradeTests(SchemaUpgradeCleanup cleanup) : base(cleanup) { } protected override string DatabaseName => $"redb_upgrade_pro_{RunSuffix}"; protected override string FreshDatabaseName => $"redb_upgrade_pro_fresh_{RunSuffix}"; protected override string RestrictedRole => $"redb_noddl_pro_{RunSuffix}"; protected override void AddRedbServices(IServiceCollection services, Action configure) => services.AddRedbPro(configure); // Resolves to the Pro overload through this file's using of redb.Postgres.Pro.Extensions. protected override void UseProvider(RedbOptionsBuilder options, string connectionString) => options.UsePostgres(connectionString); }