summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-11-30 18:11:29 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-11-30 18:11:29 +0000
commit442fe5198cc4705d27e4c4232fc989f61a5d020e (patch)
tree9be88a73b3b7e64b9a676abbaf3f8eb19634ccb2 /modules
parent947251bc8336fab00895a5dd10b08227bb459238 (diff)
downloadbrdo-442fe5198cc4705d27e4c4232fc989f61a5d020e.tar.gz
brdo-442fe5198cc4705d27e4c4232fc989f61a5d020e.tar.bz2
#193105 follow up by webernet: only run upload module update if the table is there
Diffstat (limited to 'modules')
-rw-r--r--modules/system/system.install4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/system/system.install b/modules/system/system.install
index d8febe019..7762455c0 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -2724,7 +2724,9 @@ function system_update_6039() {
*/
function system_update_6040() {
$ret = array();
- db_add_field($ret, 'upload', 'weight', array('type' => 'int', 'not null' => TRUE, 'default' => 0, 'size' => 'tiny'));
+ if (db_table_exists('upload')) {
+ db_add_field($ret, 'upload', 'weight', array('type' => 'int', 'not null' => TRUE, 'default' => 0, 'size' => 'tiny'));
+ }
return $ret;
}