summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2011-02-04 18:50:28 +0000
committerDries Buytaert <dries@buytaert.net>2011-02-04 18:50:28 +0000
commit2c43b5cdbe02040f665982c35e2d09ca5a7e7ad8 (patch)
treec094ed97339415a72e9b407985715e3337126555 /modules
parentf1399ea63883f67f46544ae15699b6c84ac7e971 (diff)
downloadbrdo-2c43b5cdbe02040f665982c35e2d09ca5a7e7ad8.tar.gz
brdo-2c43b5cdbe02040f665982c35e2d09ca5a7e7ad8.tar.bz2
- Patch #933498 by eojthebrave, aaron: image effects table created with incorrect table name in upgrade path.
Diffstat (limited to 'modules')
-rw-r--r--modules/image/image.install14
1 files changed, 13 insertions, 1 deletions
diff --git a/modules/image/image.install b/modules/image/image.install
index ea3eee5ac..d9c6b9a05 100644
--- a/modules/image/image.install
+++ b/modules/image/image.install
@@ -228,7 +228,19 @@ function image_update_7000() {
db_create_table('cache_image', $schema['cache_image']);
db_create_table('image_styles', $schema['image_styles']);
- db_create_table('image_effect', $schema['image_effects']);
+ db_create_table('image_effects', $schema['image_effects']);
+ }
+}
+
+/**
+ * Rename possibly misnamed {image_effect} table to {image_effects}.
+ */
+function image_update_7001() {
+ // Due to a bug in earlier versions of image_update_7000() it is possible
+ // to end up with an {image_effect} table where there should be an
+ // {image_effects} table.
+ if (!db_table_exists('image_effects') && db_table_exists('image_effect')) {
+ db_rename_table('image_effect', 'image_effects');
}
}