Hard-working Monkey
Component ID
2203935
Component name
Hard-working Monkey
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Downloads
409
Component created
Component changed
Component body
The hard-working monkey provides currently two little Drush commands to check and fix fields with default values in node entities.
For example when you add later a field to a content type and have existing nodes of this type, the existing nodes get this field entity with it's default value only on node save into database storage. This behavior can cause problems for views, etc.
The hard-working monkey do this job for you. You can check and fix existing fields with this little monkey.
How to use
drush <monkey-command> <monkey-worktype> <entity-type> <bundle> [--fields=field_machine_name_1,field_machine_name_2] [--fast]
- drush monkey-check fields node article
- drush monkey-fix fields node article --fields=field_with_default_value
- drush monkey-fix fields node article --fields=field_with_default_value --fast (EXPERIMENTAL)
