From cc88a199937bcd3001c95b4ce2772ec5cf236355 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sat, 24 Oct 2009 01:22:28 +0000 Subject: #612920 by catch: Added required table columns so that update.php doesn't spew fatal errors. --- includes/update.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/update.inc b/includes/update.inc index f66e734c4..f8c731e6d 100644 --- a/includes/update.inc +++ b/includes/update.inc @@ -126,7 +126,11 @@ function update_fix_d7_requirements() { // Add the cache_path table. $schema['cache_path'] = drupal_get_schema_unprocessed('system', 'cache'); $schema['cache_path']['description'] = 'Cache table used for path alias lookups.'; - db_create_table('cache_path', $schema['cache_path']); + + // system_update_7042() renames columns, but these are needed to bootstrap. + // add empty columns for now. + db_add_field('url_alias', 'source', array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => '')); + db_add_field('url_alias', 'alias', array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => '')); // Add column for locale context. if (db_table_exists('locales_source')) { -- cgit v1.2.3