diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-12-14 19:50:05 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-12-14 19:50:05 +0000 |
commit | 36278f01d83f857ecb39ebfad067d5d2ee346973 (patch) | |
tree | 41212e6a0760a0bab47a89b5a70afb583f6c25fc /modules/taxonomy | |
parent | 53c10fbf0f6dc03dead544c4f44bfcbfb18e0525 (diff) | |
download | brdo-36278f01d83f857ecb39ebfad067d5d2ee346973.tar.gz brdo-36278f01d83f857ecb39ebfad067d5d2ee346973.tar.bz2 |
- Patch #986992 by yched, sun: fixed insane etid / {field_config_entity_type()} abstraction.
Diffstat (limited to 'modules/taxonomy')
-rw-r--r-- | modules/taxonomy/taxonomy.install | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/taxonomy/taxonomy.install b/modules/taxonomy/taxonomy.install index 15103ae48..73c115aa2 100644 --- a/modules/taxonomy/taxonomy.install +++ b/modules/taxonomy/taxonomy.install @@ -600,8 +600,6 @@ function taxonomy_update_7005(&$sandbox) { } } else { - $etid = _field_sql_storage_etid('node'); - // We do each pass in batches of 1000. $batch = 1000; @@ -687,8 +685,8 @@ function taxonomy_update_7005(&$sandbox) { // Column names and values in field storage are the same for current and // revision. - $columns = array('etid', 'entity_id', 'revision_id', 'bundle', 'language', 'delta', $value_column); - $values = array($etid, $record->nid, $record->vid, $record->type, LANGUAGE_NONE, $deltas[$field_name]++, $record->tid); + $columns = array('entity_type', 'entity_id', 'revision_id', 'bundle', 'language', 'delta', $value_column); + $values = array('node', $record->nid, $record->vid, $record->type, LANGUAGE_NONE, $deltas[$field_name]++, $record->tid); // Insert rows into the revision table. db_insert($revision_name)->fields($columns)->values($values)->execute(); |