Skip to content
Snippets Groups Projects
Commit 5b3c6ab5 authored by Angie Byron's avatar Angie Byron
Browse files

#934634 by carlos8f: Fix error on update if cache_path table is already present.

parent 9463ec1d
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
...@@ -466,6 +466,9 @@ function update_fix_d7_requirements() { ...@@ -466,6 +466,9 @@ function update_fix_d7_requirements() {
db_add_index('system', 'system_list', array('weight', 'name')); db_add_index('system', 'system_list', array('weight', 'name'));
// Add the cache_path table. // Add the cache_path table.
if (db_table_exists('cache_path')) {
db_drop_table('cache_path');
}
require_once('./modules/system/system.install'); require_once('./modules/system/system.install');
$schema['cache_path'] = system_schema_cache_7054(); $schema['cache_path'] = system_schema_cache_7054();
$schema['cache_path']['description'] = 'Cache table used for path alias lookups.'; $schema['cache_path']['description'] = 'Cache table used for path alias lookups.';
......
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