diff --git a/modules/system/system.install b/modules/system/system.install index 341a1f24afef7ee547afa325073917ef4c0a3828..1b037b82bac6c6491b2a8d8d7586fd5b73bbfa07 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -2759,12 +2759,14 @@ function system_update_7061(&$sandbox) { // Retrieve a list of node revisions that have uploaded files attached. // DISTINCT queries are expensive, especially when paged, so we store the // data in its own table for the duration of the update. - $table = array( - 'description' => t('Stores temporary data for system_update_7061.'), - 'fields' => array('vid' => array('type' => 'int')), - 'primary key' => array('vid'), - ); - db_create_table('system_update_7061', $table); + if (!db_table_exists('system_update_7061')) { + $table = array( + 'description' => t('Stores temporary data for system_update_7061.'), + 'fields' => array('vid' => array('type' => 'int')), + 'primary key' => array('vid'), + ); + db_create_table('system_update_7061', $table); + } $query = db_select('upload', 'u'); $query->distinct(); $query->addField('u','vid');