Idea
A console command that generates a Doctrine migration to rename a component type — updating the discriminator map and any stored uiComponent references that point to the old name.
Use case
When a developer renames a component class (e.g. Title → Heading), several things need to update:
- The Doctrine discriminator map entry
- Any
uiComponent values stored in Page, Layout, or Component rows referencing the old name
- Potentially
ComponentPosition or ComponentGroup records
Currently this is a manual, error-prone process. A guided migration command would make renames safe and auditable.
Notes
- Could be implemented as a Maker command:
make:rename-component OldName NewName
- Should output a Doctrine migration SQL and optionally a data migration
- May need coordination with the front-end (renaming Vue files) — could print a checklist of front-end changes needed
Idea from internal docs review.
Idea
A console command that generates a Doctrine migration to rename a component type — updating the discriminator map and any stored
uiComponentreferences that point to the old name.Use case
When a developer renames a component class (e.g.
Title→Heading), several things need to update:uiComponentvalues stored inPage,Layout, orComponentrows referencing the old nameComponentPositionorComponentGrouprecordsCurrently this is a manual, error-prone process. A guided migration command would make renames safe and auditable.
Notes
make:rename-component OldName NewNameIdea from internal docs review.