summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDries Buytaert2011-02-04 18:50:28 (GMT)
committerDries Buytaert2011-02-04 18:50:28 (GMT)
commit2c43b5cdbe02040f665982c35e2d09ca5a7e7ad8 (patch)
treec094ed97339415a72e9b407985715e3337126555
parentf1399ea63883f67f46544ae15699b6c84ac7e971 (diff)
- Patch #933498 by eojthebrave, aaron: image effects table created with incorrect table name in upgrade path.
-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 ea3eee5..d9c6b9a 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');
}
}