summaryrefslogtreecommitdiff
path: root/modules/system/system.install
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 /modules/system/system.install
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 'modules/system/system.install')
-rw-r--r--modules/system/system.install11
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/system/system.install b/modules/system/system.install
index 87dfb8d1f..663d67b76 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -2832,6 +2832,16 @@ function system_update_7041() {
* Rename dst and src to source and alias.
*/
function system_update_7042() {
+ // update_fix_d7_requirements() adds 'fake' source and alias columns to
+ // allow bootstrap to run without fatal errors. Remove those columns now
+ // so that we can rename properly.
+ db_drop_field('url_alias', 'source');
+ db_drop_field('url_alias', 'alias');
+
+ // 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']);
// Drop indexes.
db_drop_index('url_alias', 'src_language_pid');
db_drop_unique_key('url_alias', 'dst_language_pid');
@@ -2841,6 +2851,7 @@ function system_update_7042() {
// Add indexes back.
db_add_index('url_alias', 'source_language_pid', array('source', 'language', 'pid'));
db_add_unique_key('url_alias', 'alias_language_pid', array('alias', 'language', 'pid'));
+
}
/**