Repository navigation
Sellf updates: apply all pending migrations in one transaction - #46
Merged
Merged
Conversation
… the database on an ambiguous migration set Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he app, validate the status list, fail deploy on migration errors Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The migration runner sends every pending release migration in a single apply_migration call. A failing file rolls back every file and registry row and the error names the file. Timestamp-only registry entries count as applied. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A lost, garbled or gateway answer can follow a COMMIT. Such a result is now checked against the migration registry: all versions present counts as applied, none (read twice) as rolled back, anything else exits 4 with an 'unknown' message instead of claiming nothing was applied. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…egistry read Any answer to a request that reached the database API, an error included, is now checked against the migration registry. Only a list of entries with timestamped versions counts as a reading; anything else reports the result as unknown (exit 4). A request that could not be sent still fails at once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e header file and the environment, not process arguments Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Migration runner for Sellf updates, used for every Sellf 2026.11.1 release-candidate update on the TEST server (rc.1–rc.6):
Rebased onto current
main(one conflict inlocal/deploy.sh: both the shared WordPress Redis helper and the migration check are cleaned up).Test plan
./tests/run.sh: 467 passed, 0 failed🤖 Generated with Claude Code