diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-05-27 20:31:13 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-05-27 20:31:13 +0000 |
commit | a8ceb7613b808c1b6643e910f96dc7319012bf67 (patch) | |
tree | 3965e8935437879f60b6cdddc995cf27282d5567 /modules/system/system.install | |
parent | 860947d3c87e8ebd53031ac8077d1dce24716e32 (diff) | |
download | brdo-a8ceb7613b808c1b6643e910f96dc7319012bf67.tar.gz brdo-a8ceb7613b808c1b6643e910f96dc7319012bf67.tar.bz2 |
- Patch #145058 by pwolanin (and chx): re-parenting and caching for menu links.
Diffstat (limited to 'modules/system/system.install')
-rw-r--r-- | modules/system/system.install | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/modules/system/system.install b/modules/system/system.install index ad34067f1..d3bfd6ed7 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -227,7 +227,7 @@ function system_install() { } // Create tables. - $modules = array('system', 'filter', 'block', 'user', 'node', 'menu', 'comment', 'taxonomy'); + $modules = array('system', 'filter', 'block', 'user', 'node', 'comment', 'taxonomy'); foreach ($modules as $module) { drupal_install_schema($module); } @@ -2977,14 +2977,15 @@ function system_update_6012() { db_add_column($ret, 'cache', 'serialized', 'smallint', array('default' => "'0'", 'not null' => TRUE)); db_add_column($ret, 'cache_filter', 'serialized', 'smallint', array('default' => "'0'", 'not null' => TRUE)); db_add_column($ret, 'cache_page', 'serialized', 'smallint', array('default' => "'0'", 'not null' => TRUE)); + db_add_column($ret, 'cache_menu', 'serialized', 'smallint', array('default' => "'0'", 'not null' => TRUE)); break; case 'mysql': case 'mysqli': $ret[] = update_sql("ALTER TABLE {cache} ADD serialized int(1) NOT NULL default '0'"); $ret[] = update_sql("ALTER TABLE {cache_filter} ADD serialized int(1) NOT NULL default '0'"); $ret[] = update_sql("ALTER TABLE {cache_page} ADD serialized int(1) NOT NULL default '0'"); + $ret[] = update_sql("ALTER TABLE {cache_menu} ADD serialized int(1) NOT NULL default '0'"); break; - } return $ret; @@ -3284,6 +3285,26 @@ function system_update_6019() { return $ret; } +function system_update_6020() { + $ret = array(); + + $schema['menu_router'] = drupal_get_schema_unprocessed('system', 'menu_router'); + $schema['menu_links'] = drupal_get_schema_unprocessed('system', 'menu_links'); + _drupal_initialize_schema('system', $schema); + $ret = array(); + foreach ($schema as $table) { + db_create_table($ret, $table); + } + return $ret; +} + +function system_update_6021() { + $ret = array(); + // TODO - menu module updates. These need to happen before we do the menu_rebuild + + menu_rebuild(); + return $ret; +} /** * @} End of "defgroup updates-5.x-to-6.x" |