Commit c7f6540a authored by Gábor Hojtsy's avatar Gábor Hojtsy

#219334 report by catch, patch by myself: upload table created in upgrade and...

#219334 report by catch, patch by myself: upload table created in upgrade and upload table created by upload module enabled later collides
parent e7645119
......@@ -5,8 +5,12 @@
* Implementation of hook_install().
*/
function upload_install() {
// Create tables.
drupal_install_schema('upload');
// Create table. The upload table might have been created in the Drupal 5
// to Drupal 6 upgrade, and was migrated from the file_revisions table. So
// in this case, there is no need to create the table, it is already there.
if (!db_table_exists('upload')) {
drupal_install_schema('upload');
}
}
/**
......
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