diff options
author | Dries Buytaert <dries@buytaert.net> | 2011-02-04 18:50:28 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2011-02-04 18:50:28 +0000 |
commit | 2c43b5cdbe02040f665982c35e2d09ca5a7e7ad8 (patch) | |
tree | c094ed97339415a72e9b407985715e3337126555 /modules | |
parent | f1399ea63883f67f46544ae15699b6c84ac7e971 (diff) | |
download | brdo-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.install | 14 |
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'); } } |