When I went to do an upgrade of a site from d6 to d7, I ran into an issue when running drush updatedb:

Error: Call to undefined function update_sql() in
/(sitepath)/sites/all/modules/contrib/nodequeue/nodequeue.install, line 308

Turns out that there is an update_sql statement that needed to be run (thought I had already run all of the dbupdates for the modules prior to upgrade). To resolve the issue, I modified line 308 from

$ret[] = update_sql("UPDATE {system} set name = 'nodequeue_view_per_queue' where name = 'nodequeue_automatic_views_generation'");

to

$ret[] = db_query("UPDATE {system} set name = 'nodequeue_view_per_queue' where name = 'nodequeue_automatic_views_generation'");

Fixed the problem. Just post in case anyone else runs into it.

CommentFileSizeAuthor
#1 nodequeue-fix_update_hook-1995816-1.patch529 bytes30equals
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

30equals’s picture

Version: 7.x-2.0-beta1 » 7.x-3.x-dev
Issue summary: View changes
FileSize
529 bytes

Hi,

Today i had the same problem with a site which has been upgraded from D6 to D7.
I changed version of the module in the issue info - as the problem still exists in the latest 7.x-3.x-dev branch.

Attached you'll find a patch which fixes this - it basicly has the same code changed as the one of the OP

jenlampton’s picture

Status: Active » Postponed

Since the 3.x branch is no longer under active development I'm going to mark this as postponed. If it's also an issue in 2.x we should set back to active.

jenlampton’s picture

Status: Postponed » Closed (outdated)

maybe this is a better status?