Skip to content
Discussion options

You must be logged in to vote

Updating all the existing entries with the default value could be a very expensive, long-running operation, so it’s not something Craft can easily do automatically. You can do it using the resave/entries command, though:

php craft resave/entries --section=mySection --set=myFieldHandle --to=theDefaultValue --if-empty

Replies: 1 comment 3 replies

Comment options

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

@brandonkelly
Comment options

@darrylhein
Comment options

Answer selected by brandonkelly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants