Skip to content

Track database schema generation separately from migrations - #685

Open
startupcompliancekit wants to merge 1 commit into
alephium:masterfrom
startupcompliancekit:fix-600-database-schema-version
Open

startupcompliancekit wants to merge 1 commit into
alephium:masterfrom
startupcompliancekit:fix-600-database-schema-version

Conversation

@startupcompliancekit

Copy link
Copy Markdown

Closes #600.

Persist a schema generation independently of the resettable migration counter and expose it through /infos. Reject incompatible stored generations before schema mutations, including read-only startup. Stamp the generation with successful synchronous migrations and document legacy adoption and future transitions.

Validation: Relevant suites passed in the original three-change backend checkout (82 tests), including version rejection, failed migrations, read-only startup and migration-counter independence. All seven backend changes passed together: 132 focused tests and two HTTP OpenAPI comparisons. Formatting and lint passed.

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.

Introduce a db_version

1 participant