Skip to content

Tool: migration command for renaming components (discriminator mapping) #191

Description

@silverbackdan

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. TitleHeading), 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions