summaryrefslogtreecommitdiff
path: root/modules/comment/comment.install
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-12-14 19:50:05 +0000
committerDries Buytaert <dries@buytaert.net>2010-12-14 19:50:05 +0000
commit36278f01d83f857ecb39ebfad067d5d2ee346973 (patch)
tree41212e6a0760a0bab47a89b5a70afb583f6c25fc /modules/comment/comment.install
parent53c10fbf0f6dc03dead544c4f44bfcbfb18e0525 (diff)
downloadbrdo-36278f01d83f857ecb39ebfad067d5d2ee346973.tar.gz
brdo-36278f01d83f857ecb39ebfad067d5d2ee346973.tar.bz2
- Patch #986992 by yched, sun: fixed insane etid / {field_config_entity_type()} abstraction.
Diffstat (limited to 'modules/comment/comment.install')
-rw-r--r--modules/comment/comment.install3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/comment/comment.install b/modules/comment/comment.install
index 6a7b03427..23f9f9cf0 100644
--- a/modules/comment/comment.install
+++ b/modules/comment/comment.install
@@ -286,7 +286,6 @@ function comment_update_7006(&$sandbox) {
$comments = (bool) db_query_range('SELECT 1 FROM {comment}', 0, 1)->fetchField();
$sandbox['types'] = array();
if ($comments) {
- $sandbox['etid'] = _field_sql_storage_etid('comment');
$sandbox['types'] = array_keys(_update_7000_node_get_types());
}
$sandbox['total'] = count($sandbox['types']);
@@ -299,7 +298,7 @@ function comment_update_7006(&$sandbox) {
$query->innerJoin('node', 'n', 'c.nid = n.nid AND n.type = :type', array(':type' => $type));
$query->addField('c', 'cid', 'entity_id');
$query->addExpression("'comment_node_$type'", 'bundle');
- $query->addExpression($sandbox['etid'], 'etid');
+ $query->addExpression("'comment'", 'entity_type');
$query->addExpression('0', 'deleted');
$query->addExpression("'" . LANGUAGE_NONE . "'", 'language');
$query->addExpression('0', 'delta');