Skip to content

Document 2.x → 3.x upgrade path - #72

Merged
victore13 merged 3 commits into
mainfrom
docs/upgrade-v3
Jul 16, 2026
Merged

Document 2.x → 3.x upgrade path#72
victore13 merged 3 commits into
mainfrom
docs/upgrade-v3

Conversation

@victore13

Copy link
Copy Markdown
Collaborator

Añade la sección Upgrading to 3.x from 2.x a UPGRADE.md, que faltaba en la release v3. Cubre:

  • Requisitos: Laravel 12.60+/13.10+ (L11 fuera), PHP 8.3+, y el cierre del advisory CRLF.
  • Correr las nuevas migraciones (admin_level/parent_id, native NOT NULL con backfill).
  • Re-seed destructivo (atlas:states/cities/countries) — preserva IDs, sobrescribe ediciones locales, ventana de mantenimiento.
  • Cambios de impacto medio/bajo: native no-null, nombres normalizados (whitespace), API nueva de jerarquía (parent()/children()/topLevel()).

También generaliza el enlace del README ("upgrading between major versions").

Doc-only. Recomiendo mergear antes de taggear 3.0.0 para que el tag incluya la guía.

victore13 and others added 2 commits July 15, 2026 14:03
Adds the "Upgrading to 3.x from 2.x" section to UPGRADE.md (missing from
the v3 release): Laravel 11 drop / framework floor, the new migrations,
the destructive re-seed, the non-null native change, whitespace-normalized
names and the additive State hierarchy API. Generalises the README
upgrade pointer to cover any major bump.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Expands the 2.x -> 3.x guide with what consumers with their own foreign
keys into Atlas tables need to know:

- Path A (composer update + migrate) changes no rows -> zero risk to FKs.
- Path B (re-seed) is safe for countries/states/cities/regions/subregions
  because PKs are seeded from the JSON id and the upgrade removes no
  existing ids, so FK targets survive.
- Caveats: ON DELETE CASCADE during the disabled-FK delete, PostgreSQL
  privilege needs, and that currencies/languages/timezones ids are not
  preserved (reference them by natural code).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@victore13
victore13 requested a review from eguiluz July 15, 2026 12:14
eguiluz
eguiluz previously approved these changes Jul 15, 2026
Remove the `paths:` filters from the Tests and PHPStan workflows. With
the filters, docs-only PRs never triggered these workflows, yet branch
protection marks them Required — so those PRs got stuck forever on
"Expected — Waiting for status to be reported". Running them
unconditionally guarantees the required checks always report; the
concurrency cancel-in-progress keeps redundant runs cheap.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@victore13
victore13 merged commit 98c7cfc into main Jul 16, 2026
10 checks passed
@victore13
victore13 deleted the docs/upgrade-v3 branch July 16, 2026 09:53
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.

2 participants