Skip to content
Snippets Groups Projects
Commit 88eda488 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #219334 by Goba et al: prevent the upload table being created if it already exists.

parent ea59f2c6
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -5,8 +5,12 @@ ...@@ -5,8 +5,12 @@
* Implementation of hook_install(). * Implementation of hook_install().
*/ */
function upload_install() { function upload_install() {
// Create tables. // Create table. The upload table might have been created in the Drupal 5
drupal_install_schema('upload'); // 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');
}
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment