Skip to content

fix: an empty 5.x exclusion list on a TPC type is no constraint - #201

Merged
CaffeinatedCoder merged 1 commit into
mainfrom
fix/172-171-tidy
Nov 25, 2026
Merged

CaffeinatedCoder merged 1 commit into
mainfrom
fix/172-171-tidy

Conversation

@CaffeinatedCoder

Copy link
Copy Markdown
Owner

Closes #171
Closes #172

Problem

Change

Tests

  • A_constraint_on_the_root_of_a_TPC_hierarchy_is_read_from_the_version_that_made_copies also holds "[]" and "". It fails with the empty check taken out.
  • An_element_column_that_becomes_computed_beside_a_rename_of_its_table_is_found_by_its_name (the diff) and Making_an_element_column_a_computed_one_and_renaming_its_table (live). The first fails when the column is looked up with the change's table.
  • Offline: 772 kernel, 210 PostgreSQL package, 90 second provider.
  • Live: 4 and 78 on PostgreSQL 16 and on 18, 86 on SQL Server 2022.
  • Not rerun: the consumer smoke test and the API probes.

🤖 Generated with Claude Code

The 5.x reader refused a TPC type with derived types in a snapshot from
before 5.5.0 as soon as the annotation was there, also when its list
held no entry. It now reads the list first: without an entry there is
no constraint, whatever the type is mapped as (#171).

#172 was fixed by the impact table of #117, which finds a changed
column by its name. Its scenario, an element column that becomes
computed beside a rename of its table, is now a test of the diff and
one on a live server.

Closes #171
Closes #172

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@CaffeinatedCoder CaffeinatedCoder added this to the 11.0.0 milestone Nov 25, 2026
@CaffeinatedCoder CaffeinatedCoder added bug Something isn't working severity/low Cosmetic, message or documentation-level difference package/postgresql Affects CodoMetis.EFCore.SchemaKit.PostgreSQL area/constraints Exclusion constraints, row guards and other constraint-like objects labels Nov 25, 2026
@CaffeinatedCoder
CaffeinatedCoder merged commit acadbff into main Nov 25, 2026
11 checks passed
@CaffeinatedCoder
CaffeinatedCoder deleted the fix/172-171-tidy branch November 25, 2026 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/constraints Exclusion constraints, row guards and other constraint-like objects bug Something isn't working package/postgresql Affects CodoMetis.EFCore.SchemaKit.PostgreSQL severity/low Cosmetic, message or documentation-level difference

Projects

None yet

1 participant