summaryrefslogtreecommitdiff
path: root/modules/comment/comment.install
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-01-25 21:32:44 +0000
committerDries Buytaert <dries@buytaert.net>2010-01-25 21:32:44 +0000
commit6cb277926fbfbe2b7f0308710a8a9a5b18abb074 (patch)
tree0d74c5ddff258c77a320b79f389ab8c36fd778ed /modules/comment/comment.install
parent2e8d384cba4f18a8880c9620041c00334b95a1a5 (diff)
downloadbrdo-6cb277926fbfbe2b7f0308710a8a9a5b18abb074.tar.gz
brdo-6cb277926fbfbe2b7f0308710a8a9a5b18abb074.tar.bz2
- Patch #563106 by adrian, David_Rothstein: more upgrade path fixes to help contrib updates make progress.
Diffstat (limited to 'modules/comment/comment.install')
-rw-r--r--modules/comment/comment.install10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/comment/comment.install b/modules/comment/comment.install
index b6579e751..501252eb0 100644
--- a/modules/comment/comment.install
+++ b/modules/comment/comment.install
@@ -247,6 +247,9 @@ function comment_update_7011() {
* Create the comment_body field.
*/
function comment_update_7012() {
+ // @todo Remove when http://drupal.org/node/211182 is fixed.
+ taxonomy_update_7002();
+
// Create comment body field.
$field = array(
'field_name' => 'comment_body',
@@ -308,6 +311,13 @@ function comment_update_7013(&$sandbox) {
db_insert($comment_body_table)
->from($query)
->execute();
+ // Update the comment body format in a similar manner as is done for other
+ // modules in filter_update_7005(), but we do this one here since we are
+ // already migrating the data.
+ db_update($comment_body_table)
+ ->fields(array('comment_body_format' => variable_get('filter_default_format', 1)))
+ ->condition('comment_body_format', 0)
+ ->execute();
$sandbox['#finished'] = 1 - count($sandbox['types']) / $sandbox['total'];
}