summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}