From 18b73f13b77e9df968f744093f3c260babcbc9be Mon Sep 17 00:00:00 2001
From: Angie Byron <webchick@24967.no-reply.drupal.org>
Date: Thu, 1 Jul 2010 15:14:27 +0000
Subject: [PATCH] #842394 by Stevel: Add dependency to filter_update_7005 so
 that it runs after the addition of role weight column.

---
 modules/filter/filter.install | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/modules/filter/filter.install b/modules/filter/filter.install
index fe2857a9853b..01b67cfc275b 100644
--- a/modules/filter/filter.install
+++ b/modules/filter/filter.install
@@ -139,6 +139,18 @@ function filter_install() {
   variable_set('filter_fallback_format', $plain_text_format->format);
 }
 
+/**
+ * Implements hook_update_dependencies().
+ */
+function filter_update_dependencies() {
+  // Filter update 7007 migrates permissions and therefore needs to run after
+  // the {role} table is properly set up.
+  $dependencies['filter'][7005] = array(
+    'user' => 7007,
+  );
+
+  return $dependencies;
+}
 /**
  * @defgroup updates-6.x-to-7.x Filter updates from 6.x to 7.x
  * @{
-- 
GitLab