diff options
-rw-r--r-- | modules/system/system.install | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/system/system.install b/modules/system/system.install index 9d20ae5d9..78f486b39 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -896,7 +896,7 @@ function system_install() { db_query("INSERT INTO {variable} (name, value) VALUES ('node_options_forum', '%s')", 'a:1:{i:0;s:6:"status";}'); - db_query("INSERT INTO {menu} (pid, path, title, description, weight, type) VALUES (0, '', 'Primary links', '', 0, 115)"); + db_query("INSERT INTO {menu} (mid, pid, path, title, description, weight, type) VALUES (2, 0, '', 'Primary links', '', 0, 115)"); db_query("INSERT INTO {variable} VALUES ('menu_primary_menu', 'i:2;')"); db_query("INSERT INTO {variable} VALUES ('menu_secondary_menu', 'i:2;')"); } @@ -3245,6 +3245,13 @@ function system_update_1010() { return $ret; } +function system_update_1011() { + $ret = array(); + $ret[] = update_sql('UPDATE {menu} SET mid = 2 WHERE mid = 0'); + cache_clear_all(); + return $ret; +} + /** * @} End of "defgroup updates-4.7-to-x.x" * The next series of updates should start at 2000. |