diff --git a/modules/system/system.install b/modules/system/system.install index a9edd0e..8b92fee 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -2815,14 +2815,16 @@ function system_update_7061(&$sandbox) { $sandbox['last_fid_processed'] = -1; // Therefore create a mapping table between old and new FIDs. - $table = array( - 'fields' => array( - 'old_fid' => array('type' => 'int'), - 'new_fid' => array('type' => 'int'), + if (!db_table_exists('system_update_7061_fid_mapping')) { + $table = array( + 'fields' => array( + 'old_fid' => array('type' => 'int'), + 'new_fid' => array('type' => 'int'), ), - 'primary key' => array('old_fid'), - ); - db_create_table('system_update_7061_fid_mapping', $table); + 'primary key' => array('old_fid'), + ); + db_create_table('system_update_7061_fid_mapping', $table); + } } $limit = variable_get('upload_update_batch_size', 100);