summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThilo Wawrzik2007-11-23 09:54:29 (GMT)
committerThilo Wawrzik2007-11-23 09:54:29 (GMT)
commit580127721bbd9cb949fb64e6fa6f5e6f515ab6ac (patch)
tree27f43bc965d4dbd1e9d76b18412a8f17e07e52ba
parent44ea334575e2a37ee6bf256b81893b3b8db3b9f7 (diff)
- bugfix: blocks not migrated automatically5.x-2.0
-rw-r--r--gallery.install5
1 files changed, 5 insertions, 0 deletions
diff --git a/gallery.install b/gallery.install
index 573fb79..74e60c6 100644
--- a/gallery.install
+++ b/gallery.install
@@ -53,6 +53,11 @@ function gallery_update_1() {
// Update variables
$ret = gallery_update_variables($migrate, $obsolete);
+ // Update the blocks
+ $ret[] = update_sql("UPDATE {blocks} SET delta = 'image-0' WHERE module = 'gallery' AND delta = 0");
+ $ret[] = update_sql("UPDATE {blocks} SET delta = 'navigation' WHERE module = 'gallery' AND delta = 1");
+ $ret[] = update_sql("UPDATE {blocks} SET delta = 'grid-0' WHERE module = 'gallery' AND delta = 2");
+
// Mark gallery configuration invalid. This does NOT reset the configuration, but
// forces the user to run the install wizard to (re)set and verify critical settings.
variable_set('gallery_valid', FALSE);