Commit 442fe519 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#193105 follow up by webernet: only run upload module update if the table is there

parent 947251bc
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment