summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-08-27 19:31:47 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-08-27 19:31:47 +0000
commit8215f5af03f26590ed5df242670778215d71073a (patch)
treefa6b8990baa72ada41b26953de4a68c338451e26
parent454a53eb1b152328a65f07723fe828ac514cd78b (diff)
downloadbrdo-8215f5af03f26590ed5df242670778215d71073a.tar.gz
brdo-8215f5af03f26590ed5df242670778215d71073a.tar.bz2
#895032 follow-up by mongolito404: Fixed Upgrade fails on missing file_usage() table.
-rw-r--r--modules/system/system.install18
1 files changed, 11 insertions, 7 deletions
diff --git a/modules/system/system.install b/modules/system/system.install
index 1f204009b..08be7bba9 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -2624,14 +2624,9 @@ function system_update_7058() {
}
/**
- * Migrate upload.module to file.module.
+ * Create the {file_usage} table.
*/
-function system_update_7059(&$sandbox) {
- if (!db_table_exists('upload')) {
- return;
- }
-
- // Create the {file_usage} table.
+function system_update_7059() {
$spec = array(
'description' => 'Track where a file is used.',
'fields' => array(
@@ -2678,6 +2673,15 @@ function system_update_7059(&$sandbox) {
),
);
db_create_table('file_usage', $spec);
+}
+
+/**
+ * Migrate upload.module to file.module.
+ */
+function system_update_7060(&$sandbox) {
+ if (!db_table_exists('upload')) {
+ return;
+ }
if (!isset($sandbox['progress'])) {
// Initialize batch update information.