summaryrefslogtreecommitdiff
path: root/modules/comment
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2011-05-23 21:00:54 -0400
committerDries Buytaert <dries@buytaert.net>2011-05-23 21:00:54 -0400
commit259d0b8feca71d49c2f79dcce53b3147f7429b75 (patch)
tree2a1c29bbd6ecefb410f9b34a3ffbba65d1f09f8f /modules/comment
parent1f17b2c1e2cc602faa99f40f8c0c305df7e17cde (diff)
parent6c57cfa11d58e8c3b6dd5ccc663ce15e2b8842cd (diff)
downloadbrdo-259d0b8feca71d49c2f79dcce53b3147f7429b75.tar.gz
brdo-259d0b8feca71d49c2f79dcce53b3147f7429b75.tar.bz2
Merge branch '7.x' of git.drupal.org:project/drupal into 7.x
Diffstat (limited to 'modules/comment')
-rw-r--r--modules/comment/comment.install20
1 files changed, 20 insertions, 0 deletions
diff --git a/modules/comment/comment.install b/modules/comment/comment.install
index 51bfa7453..d64b3acde 100644
--- a/modules/comment/comment.install
+++ b/modules/comment/comment.install
@@ -344,6 +344,26 @@ function comment_update_7007() {
}
/**
+ * Update database to match Drupal 7 schema.
+ */
+function comment_update_7008() {
+ // Update default status to 1.
+ db_change_field('comment', 'status', 'status', array(
+ 'type' => 'int',
+ 'unsigned' => TRUE,
+ 'not null' => TRUE,
+ 'default' => 1,
+ 'size' => 'tiny',
+ ));
+
+ // Realign indexes.
+ db_drop_index('comment', 'comment_status_pid');
+ db_add_index('comment', 'comment_status_pid', array('pid', 'status'));
+ db_drop_index('comment', 'comment_pid_status');
+ db_drop_index('comment', 'nid');
+}
+
+/**
* @} End of "addtogroup updates-6.x-to-7.x"
*/