I am working on a language hierarchy module that has changed the schema of the languages table to add an extra field. The full language object is exported by features with my extra field. However, the revert function does not work because the list of fields is hard coded.
See includes/features.locale.inc line 143
// @TODO: get properties from schema.
$properties = array('language', 'name', 'native', 'direction', 'enabled', 'plurals', 'formula', 'domain', 'prefix', 'weight', 'javascript');
I'll be adding a patch to fix this.
Comments
Comment #1
carinadigital commentedThis patch won't address the initial creating of the languages with any altered field data. However, if you revert after their initial creation by features your custom schema field data will be restored.
Comment #2
henrijs.seso commentedYes, patch works. Needs another review?
Comment #3
rodrigoaguileraThere's extra spaces in the patch
Comment #4
danepowell commentedHere is #1 with code standards fixed. Works like a charm for me!
Comment #5
rodrigoaguileraI can confirm that this works making the features not overriden.
Comment #7
mpotter commentedCommitted to 1491dd5.