Repository navigation
📝 docs: a failed migration runs again from the top; drop the unstable badge - #88
Merged
Merged
Conversation
…ite it to run twice
…leases The CHANGELOG badge linked blob/main/CHANGELOG.md: a 404 for the framework, whose branch is master, and for the eight packages, which have no CHANGELOG.md. Every one of them has GitHub Releases.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Oct 7, 2026
…retry From an independent review of #88: the DROP COLUMN example failed on a second run (MySQL has no DROP COLUMN IF EXISTS), dbDelta() applies what differs rather than only adding, isEmpty() is for rows that must not go in twice (a refresh truncates instead), and Seeding's list of re-runs lacked the retry. The guarded DROP was run twice on wpbones.test: dropped, then skipped, no error.
Contributor
Author
|
Copilot could not review (quota). An independent review checked every claim of the new paragraph against |
This branch was successfully deployed
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.
Two small changes.
Migrations (
content/database-orm/migrations.mdx, When a migration fails): one paragraph saying that a retry runs the failed migration again from its first statement while what it changed before failing stays (WordPress queries autocommit, and MySQL cannot roll backCREATE/ALTER/DROP), so a migration has to survive running twice:create()already does, rows go behindisEmpty(), a hand-written statement checks first. Settled against the code:Migrator::migrate()records a file only after it ran without an exception or a new database error (src/Database/Migrations/Migrator.php200–237 at v3.0.0), and nothing insrc/opens a transaction.Badges (
components/Poser/Poser.tsx, used on the introduction and the eight package pages):dev-master/dev-devnext to the stable version);blob/main/CHANGELOG.md, a 404 on all nine pages (the framework's branch ismaster; the packages have no CHANGELOG.md). It now opens the repository's GitHub Releases, which all nine have.yarn test: 10 suites, 65 tests, format, lint and typecheck green.