From 5b3c6ab59548a31fac71a3e408085c9204ac1438 Mon Sep 17 00:00:00 2001
From: Angie Byron <webchick@24967.no-reply.drupal.org>
Date: Mon, 22 Nov 2010 07:02:58 +0000
Subject: [PATCH] #934634 by carlos8f: Fix error on update if cache_path table
 is already present.

---
 includes/update.inc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/includes/update.inc b/includes/update.inc
index 5fdc1698155b..496b824c20e6 100644
--- a/includes/update.inc
+++ b/includes/update.inc
@@ -466,6 +466,9 @@ function update_fix_d7_requirements() {
     db_add_index('system', 'system_list', array('weight', 'name'));
 
     // Add the cache_path table.
+    if (db_table_exists('cache_path')) {
+      db_drop_table('cache_path');
+    }
     require_once('./modules/system/system.install');
     $schema['cache_path'] = system_schema_cache_7054();
     $schema['cache_path']['description'] = 'Cache table used for path alias lookups.';
-- 
GitLab