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
@@ -36,9 +36,11 @@ public class AppDbContext : IdentityDbContext<AppUser, AppRole, Guid>
|
||||
|
||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||
{
|
||||
optionsBuilder.AddInterceptors(
|
||||
new AuditInterceptor(),
|
||||
new SoftDeleteInterceptor());
|
||||
optionsBuilder
|
||||
.UseQueryTrackingBehavior(QueryTrackingBehavior.NoTracking)
|
||||
.AddInterceptors(
|
||||
new AuditInterceptor(),
|
||||
new SoftDeleteInterceptor());
|
||||
|
||||
base.OnConfiguring(optionsBuilder);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user