From 442fe5198cc4705d27e4c4232fc989f61a5d020e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Fri, 30 Nov 2007 18:11:29 +0000 Subject: #193105 follow up by webernet: only run upload module update if the table is there --- modules/system/system.install | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/system') 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; } -- cgit v1.2.3