summaryrefslogtreecommitdiff
path: root/includes/update.inc
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-24 01:22:28 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-24 01:22:28 +0000
commitcc88a199937bcd3001c95b4ce2772ec5cf236355 (patch)
treea48818dd2767e6207de96a67ed9a3ea6f3491bd5 /includes/update.inc
parenta7149821d61d00cfb62d5ab67cbc2a282d53d41a (diff)
downloadbrdo-cc88a199937bcd3001c95b4ce2772ec5cf236355.tar.gz
brdo-cc88a199937bcd3001c95b4ce2772ec5cf236355.tar.bz2
#612920 by catch: Added required table columns so that update.php doesn't spew fatal errors.
Diffstat (limited to 'includes/update.inc')
-rw-r--r--includes/update.inc6
1 files changed, 5 insertions, 1 deletions
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')) {