Repository navigation
feat: Impact.Blocks becomes Impact.RebuildAround, the answer also for an object an operation leaves broken - #62
Merged
Conversation
… an object an operation leaves broken Spike E measured a trigger whose body reads a column: it stays in the catalog through the column's rename and drop and fails when it next fires. That needs the action of Blocks, drop before and create after, and is not a failure of the operation. The case is renamed to what SchemaKit does. Closes #61 Co-Authored-By: Claude Fable 5.2 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #61
Problem
Impact.Blockswas "the operation fails while the object exists". Spike E (#20) measured a case that needs the same action and is not a failure: a trigger whose body reads a column stays in the catalog through the column's rename and drop, on PostgreSQL and on SQL Server, and fails when it next fires.Lostwould leave the broken trigger in place. The maintainer decided on 2026-11-12 to rename the case rather than stretch its documentation.Change
Contributors/SchemaChange.cs:Impact.BlocksisImpact.RebuildAround, documented as "the object cannot stay as it is through the operation: the operation fails while it exists, or leaves it broken". The union keeps four cases.SchemaKitStrings.ImpactReturnedNullnames the new case.design/schemakit-core-plan.md: the answer table of section 3.7, and the note under the measured tables, which now says thatBlocksandStalethere are observations and both are answeredRebuildAround.ImpactOfuses the new case.spikes/E.ImpactTablekeepsBlocksandStaleas its own outcome names: they are what a server was seen to do, not the contract's answers.The contract is experimental (
SK9001); nothing outside the repository compiles against it.Tests
Kernel tests without a server, on SDK 11.0.100 in the checkout: 326 before and after. Probes: 125 pass. The PostgreSQL integration tests did not run locally; CI runs them.
With the rename under
src/only, three tests failed, which is what holds the closed union and the surface:A_closed_union_has_the_cases_it_was_decided_with(Impact),The_public_types_are_the_ones_meant_to_beandAn_impact_that_is_null_is_refused. Each is updated to the new name.🤖 Generated with Claude Code