summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/fieldgroup/fieldgroup.install9
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/fieldgroup/fieldgroup.install b/modules/fieldgroup/fieldgroup.install
index 25bf529..da4b71f 100644
--- a/modules/fieldgroup/fieldgroup.install
+++ b/modules/fieldgroup/fieldgroup.install
@@ -300,9 +300,16 @@ function fieldgroup_update_6005() {
}
/**
- * Remove orphaned fields (see http://drupal.org/node/339537).
+ * Removed a previous version of "Remove orphaned fields" (6007), broken for db prefixes.
*/
function fieldgroup_update_6006() {
+ return array();
+}
+
+/**
+ * Remove orphaned fields (see http://drupal.org/node/339537).
+ */
+function fieldgroup_update_6007() {
$ret = array();
$ret[] = update_sql("DELETE FROM {content_group_fields} WHERE (field_name, type_name) NOT IN (SELECT field_name, type_name FROM {content_node_field_instance})");
return $ret;