Features - Issues
1. Features and field collection has some issues.
When you upgrade field collection from field_collection 7.x-1.0-beta7 to field_collection 7.x-1.0-beta8, field collection add index to field collection fields.So feature will show overridden state.
Solution:
Recreate the feature and update.
When you upgrade field collection from field_collection 7.x-1.0-beta7 to field_collection 7.x-1.0-beta8, field collection add index to field collection fields.So feature will show overridden state.
Line
88
|
Line
88
|
||
'cardinality' => -1,
|
'cardinality' => -1,
|
||
'field_name' =>
'field_sit_test',
|
'field_name' =>
'field_sit_test',
|
||
+
|
'indexes' => array(
|
||
+
|
'revision_id' => array(
|
||
+
|
0 => 'revision_id',
|
||
+
|
),
|
||
+
|
),
|
||
'module' => 'field_collection',
|
'module' => 'field_collection',
|
||
'settings' => array(
|
'settings' => array(
|
Solution:
Recreate the feature and update.
https://www.drupal.org/node/2270619
2. While recreating a feature, it will only alter the existing parameters that is already added. So, if you want to add new manually select from recreate view.
Example:
I am already managing sites user permissions in a feature. When a new module is added and it has its own permisions it wont be added by default while you recreate. You have to manually add the module specific permission from recreate view.
2. Features unable to revert
Sometimes some time fields has data on it. So, its properties can't be altered. Hence feature will fail to revert. To revert remove the data on the field and then feature will revert.
3. Features will not remove field instances - You can write hook_update_N to remove it from content type.
2. While recreating a feature, it will only alter the existing parameters that is already added. So, if you want to add new manually select from recreate view.
Example:
I am already managing sites user permissions in a feature. When a new module is added and it has its own permisions it wont be added by default while you recreate. You have to manually add the module specific permission from recreate view.
2. Features unable to revert
Sometimes some time fields has data on it. So, its properties can't be altered. Hence feature will fail to revert. To revert remove the data on the field and then feature will revert.
3. Features will not remove field instances - You can write hook_update_N to remove it from content type.
Comments
Post a Comment