Skip to content

docs: freeze the v2 baseline migrations from the first beta - #2941

Open
glennjacobs wants to merge 1 commit into
2.xfrom
docs/beta-migration-policy
Open

glennjacobs wants to merge 1 commit into
2.xfrom
docs/beta-migration-policy

Conversation

@glennjacobs

Copy link
Copy Markdown
Contributor

Sets the migration policy for the beta. No code changes.

CLAUDE.md, Migrations

  • From the first beta tag (2.0.0-beta.1), the 2026_01_01_* baseline is frozen. Every schema change goes in a new migration in the package that owns the table, dated when it's written, and no baseline migration is edited.
  • A new migration is never added to v2_baseline in packages/upgrade/config/upgrade.php. The v1 upgrade marks only those files as run, so an upgraded store runs the new migration through php artisan migrate, and the upgrade package needs no matching migration.
  • Until that tag, the current folding rule stays, now spelling out the upgrade migration each fold needs when v1 has the table.
  • The "No meta in core" bullet points at the Migrations rule instead of saying "baseline while v2 is in alpha".

Alpha upgrade guide

  • The page stops growing at 2.0.0-beta.1, not at 2.0.0.

When the beta is tagged, the guide's "Next release" section becomes its 2.0.0-beta.1 section, as earlier releases did.

From 2.0.0-beta.1 every schema change goes in a new migration and no
baseline migration is edited. A new migration is not added to the v1
upgrade's v2_baseline list, so upgraded stores run it through migrate
and the upgrade package needs no matching migration. Folding stays the
rule until that tag. The alpha upgrade guide stops growing at the beta
rather than at 2.0.0.

Amp-Thread-ID: https://ampcode.com/threads/T-8ecb4cbd-8657-4f41-8f71-6de8c214834c
Co-authored-by: Amp <amp@ampcode.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant