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
Oracles on live servers: catalog equivalence and behaviour #32
area/migrationsThe differ and generator decorators, snapshot format, EnsureCreated and the UseSchemaKit wiringpackage/postgresqlAffects CodoMetis.EFCore.SchemaKit.PostgreSQLpackage/sqlserverAffects CodoMetis.EFCore.SchemaKit.SqlServertestsAdds or changes tests only (harnesses, parity suites); no library code
The backbone of plan, section 4. Starts with preview.1, grows with each kind.
Change
Catalog equivalence: for generated model pairs (A, B), the catalog after migrating A to B equals the catalog of EnsureCreated(B); a second diff is empty after a compiled snapshot round trip; Down returns to A's catalog for reversible changes. Read through pg_get_indexdef, pg_get_constraintdef, sys.*.
Behaviour: per kind, writes that must fail do fail and writes that must pass do pass: duplicates under a partial unique index with null keys, overlapping ranges, a deferred constraint at commit. Catalog equality cannot see a renderer that is wrong the same way on both paths.
PostgreSQL 16 and 18 and SQL Server 2022 in Testcontainers; a database per test.
Done when
Each oracle has been shown to fail: a seeded ordering mistake for the first, a seeded missing null compensation for the second.
area/migrationsThe differ and generator decorators, snapshot format, EnsureCreated and the UseSchemaKit wiringpackage/postgresqlAffects CodoMetis.EFCore.SchemaKit.PostgreSQLpackage/sqlserverAffects CodoMetis.EFCore.SchemaKit.SqlServertestsAdds or changes tests only (harnesses, parity suites); no library code
Activity