summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2012-08-01 11:19:51 -0400
committerDavid Rothstein <drothstein@gmail.com>2012-08-01 11:19:51 -0400
commitb7e3bb7f4b6e140926a88581843263b15560f6c5 (patch)
tree32015423f09cdddca614799cad8b127abf12d3fb /modules
parent0e35cc07681371a9cb191b523ee49ddb93c44f28 (diff)
downloadbrdo-b7e3bb7f4b6e140926a88581843263b15560f6c5.tar.gz
brdo-b7e3bb7f4b6e140926a88581843263b15560f6c5.tar.bz2
Issue #1706788 by David_Rothstein | aturetta: Rolled back issue #1613554 by removing the contents of system_update_7074 for now, since it fails on PostgreSQL.
Diffstat (limited to 'modules')
-rw-r--r--modules/simpletest/tests/upgrade/drupal-6.menu.database.php27
-rw-r--r--modules/system/system.install20
2 files changed, 4 insertions, 43 deletions
diff --git a/modules/simpletest/tests/upgrade/drupal-6.menu.database.php b/modules/simpletest/tests/upgrade/drupal-6.menu.database.php
index 7fae337aa..8962615fb 100644
--- a/modules/simpletest/tests/upgrade/drupal-6.menu.database.php
+++ b/modules/simpletest/tests/upgrade/drupal-6.menu.database.php
@@ -126,33 +126,6 @@ db_insert('menu_links')->fields(array(
'p9' => '0',
'updated' => '0',
))
-->values(array(
- 'menu_name' => 'secondary-links',
- 'mlid' => '206',
- 'plid' => '0',
- 'link_path' => 'node',
- 'router_path' => 'node',
- 'link_title' => 'node-page-with-query',
- 'options' => 'a:2:{s:5:"query";s:14:"page=1&node=10";s:10:"attributes";a:1:{s:5:"title";s:0:"";}}',
- 'module' => 'menu',
- 'hidden' => '0',
- 'external' => '0',
- 'has_children' => '0',
- 'expanded' => '0',
- 'weight' => '2',
- 'depth' => '1',
- 'customized' => '1',
- 'p1' => '206',
- 'p2' => '0',
- 'p3' => '0',
- 'p4' => '0',
- 'p5' => '0',
- 'p6' => '0',
- 'p7' => '0',
- 'p8' => '0',
- 'p9' => '0',
- 'updated' => '0',
-))
->execute();
db_insert('blocks')->fields(array(
'bid',
diff --git a/modules/system/system.install b/modules/system/system.install
index 6d8142004..1161d6cdd 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -3016,24 +3016,12 @@ function system_update_7073() {
}
/**
- * Convert menu_links query strings to arrays.
+ * This update has been removed and will not run.
*/
function system_update_7074() {
- $query = db_select('menu_links', 'ml', array('fetch' => PDO::FETCH_ASSOC))
- ->fields('ml', array('mlid', 'options'))
- ->condition('options', '%query%', 'LIKE');
- foreach ($query->execute() as $menu_link) {
- $menu_link['options'] = unserialize($menu_link['options']);
- if (isset($menu_link['options']['query']) && is_string($menu_link['options']['query'])) {
- $menu_link['options']['query'] = drupal_get_query_array($menu_link['options']['query']);
- db_update('menu_links')
- ->fields(array(
- 'options' => serialize($menu_link['options']),
- ))
- ->condition('mlid', $menu_link['mlid'], '=')
- ->execute();
- }
- }
+ // This update function previously converted menu_links query strings to
+ // arrays. It has been removed for now due to incompatibility with
+ // PostgreSQL.
}
/**