Suppose I have a content type Person
with fields: Name
, Age
, Email
This content type is controlled by a Feature called test
so I can source control it and push it to the live site.
My workflow goes like this:
- I add a new field on
Person
calledPhone
- locally I do:
drush fu test -y
- I edit the
test.info
to increase the version number - I commit the changes to my repository
- I push the feature to the live site (copy the feature files)
- on the live site I do:
drush fr test -y
- on the live site I do:
drush cc all
Then the new field appears on the live site's Person
.
If on the first step I remove a field of Person
the field will not be deleted from the live site. How do I solve this? I don't want to have to manually delete it from the UI on the live site.
Is this workflow correct?