Skip to content

Preserve IDs during the nullable-field migration - #78

Merged
jackharrhy merged 1 commit into
mainfrom
fix/preserve-migration-id-sequences
Oct 24, 2026
Merged

jackharrhy merged 1 commit into
mainfrom
fix/preserve-migration-id-sequences

Conversation

@jackharrhy

Copy link
Copy Markdown
Collaborator

Preserves the people/events autoincrement high-water marks during migration 0061, including when the highest ID was deleted. Rebuilding a table otherwise resets its counter to the largest surviving ID and can reuse deleted identifiers.

Captured this before running the production migration. No production data has been migrated yet. Adds regression coverage for deleted high IDs and verifies the next person ID advances beyond the old counter.

Validation: focused migration test, lint and build pass. Replaying against the production snapshot preserves people sequence 2332 and event sequence 284, with SQLite integrity_check returning ok.

@jackharrhy
jackharrhy merged commit 921d3a4 into main Oct 24, 2026
1 check passed
@jackharrhy
jackharrhy deleted the fix/preserve-migration-id-sequences branch October 24, 2026 03:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant