You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tests: nothing pins that a column named only in a filter counts as read for ALTER COLUMN #156
area/migrationsThe differs, snapshot format, EnsureCreated and design-time wiringpackage/coreAffects EFCore.ComplexIndexespackage/sqlserverAffects EFCore.ComplexIndexes.SqlServertestsAdds or changes tests only (harnesses, parity suites); no library code
Found in the 5.5.0 pre-tag review (#36) by seeding defects into 934ec55. The code is right today, but nothing pins it.
Seed: in ColumnsReadBy (src/EFCore.ComplexIndexes/CustomMigrationsModelDiffer.cs:555), replace columns.UnionWith(table.Columns.Select(c => c.Name).Where(name => text.Contains(name, …))) with { }.
Result: the unit suite still passes, 569/569.
Without that line, a column that a complex index names only in its filter no longer counts as read by the index. An ALTER COLUMN on it then runs with the index in place, and fails at apply on SQL Server (Msg 5074). Today a filter {RevokedAt} IS NULL plus a type change of RevokedAt correctly scaffolds DropIndex ux_active_email → AlterColumn RevokedAt → CreateIndex ux_active_email.
Test to add: that model, with the SQL Server differ; assert drop < alter < create. Add a PostgreSQL row if its differ shares the path. Prove it by re-applying the seed.
area/migrationsThe differs, snapshot format, EnsureCreated and design-time wiringpackage/coreAffects EFCore.ComplexIndexespackage/sqlserverAffects EFCore.ComplexIndexes.SqlServertestsAdds or changes tests only (harnesses, parity suites); no library code
Activity
Pin three 5.5.0 behaviours the pre-tag seeds survived
Add live SQL Server rows for #155 and #156
Merge pull request #160 from CaffeinatedCoder/tests/155-157-surviving…