Skip to content

Console command for users to merge field definitions #14554

Closed Answered by brandonkelly
vnali asked this question in Ideas
Discussion options

You must be logged in to vote

Just tagged Craft 5.3.0-beta.1 with new fields/merge and entry-types/merge commands 🎉

See the PRs for a full description of how they work.

When it comes to cleaning up your entry types after upgrading to Craft 5, I’d recommend taking the following approach:

  1. Create a database backup.
  2. For any redundant fields, first check their settings to be sure there aren’t any subtle differences that warrant two separate fields. Then run fields/merge for each one.
  3. For any redundant entry types, first compare their field layouts. If there are any field instances in the outgoing entry type whose values should get merged into an existing instance in the persisting entry type, make sure that:
    • they both re…

Replies: 7 comments 22 replies

Comment options

You must be logged in to vote
4 replies
@MoritzLost
Comment options

@brandonkelly
Comment options

@MoritzLost
Comment options

@mikolamin
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
10 replies
@jannisborgers
Comment options

@brandonkelly
Comment options

@brandonkelly
Comment options

@mofman
Comment options

@brandonkelly
Comment options

Answer selected by brandonkelly
Comment options

You must be logged in to vote
2 replies
@jannisborgers
Comment options

@brandonkelly
Comment options

Comment options

You must be logged in to vote
3 replies
@brandonkelly
Comment options

@reilnuud
Comment options

@brandonkelly
Comment options

Comment options

You must be logged in to vote
2 replies
@brandonkelly
Comment options

@mikolamin
Comment options

Comment options

You must be logged in to vote
1 reply
@brandonkelly
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
7 participants