summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-02-10 19:09:58 +0000
committerDries Buytaert <dries@buytaert.net>2008-02-10 19:09:58 +0000
commit88eda488b3ff78531003ee5ccc7a552312b4b2fc (patch)
tree897510e39a78476036162d1d61adfa8faaf001be
parentea59f2c6b5644716c8094109077d1df4717c15f0 (diff)
downloadbrdo-88eda488b3ff78531003ee5ccc7a552312b4b2fc.tar.gz
brdo-88eda488b3ff78531003ee5ccc7a552312b4b2fc.tar.bz2
- Patch #219334 by Goba et al: prevent the upload table being created if it already exists.
-rw-r--r--modules/upload/upload.install8
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/upload/upload.install b/modules/upload/upload.install
index 2a5fa213f..e4407712a 100644
--- a/modules/upload/upload.install
+++ b/modules/upload/upload.install
@@ -5,8 +5,12 @@
* Implementation of hook_install().
*/
function upload_install() {
- // Create tables.
- drupal_install_schema('upload');
+ // Create table. The upload table might have been created in the Drupal 5
+ // to Drupal 6 upgrade, and was migrated from the file_revisions table. So
+ // in this case, there is no need to create the table, it is already there.
+ if (!db_table_exists('upload')) {
+ drupal_install_schema('upload');
+ }
}
/**