fix(db): correct Site index filter column casing ("is_deleted" → "IsDeleted")
The filtered index IX_sites_IsDeleted uses a WHERE clause referencing "is_deleted" (lowercase underscore) but the column is "IsDeleted" (PascalCase). PostgreSQL quoted identifiers are case-sensitive, causing Npgsql.PostgresException on migration. Fixes remaining HEIMDALL issues on GlitchTip.
This commit is contained in:
1 parent
f43297bf08
commit
0f22a60fbc
4 files changed
+19
-9
No files matched your search
@@ -29,12 +29,17 @@ public static class DependencyInjection
|
||||
var dbName = configuration.GetValue<string>("InMemoryDbName") ?? "HeimdallTestDb";
|
||||
services.AddDbContext<AppDbContext>(options =>
|
||||
options.UseInMemoryDatabase(dbName));
|
||||
services.AddDbContextFactory<AppDbContext>(options =>
|
||||
options.UseInMemoryDatabase(dbName));
|
||||
}
|
||||
else
|
||||
{
|
||||
services.AddDbContext<AppDbContext>(options =>
|
||||
options.UseNpgsql(connectionString, npgsql =>
|
||||
npgsql.MigrationsHistoryTable("__EFMigrationsHistory", "public")));
|
||||
services.AddDbContextFactory<AppDbContext>(options =>
|
||||
options.UseNpgsql(connectionString, npgsql =>
|
||||
npgsql.MigrationsHistoryTable("__EFMigrationsHistory", "public")));
|
||||
}
|
||||
|
||||
// Identity
|
||||
|
||||
Reference in new issue
Block a user