Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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.
Comment | File | Size | Author |
---|---|---|---|
#1 | nodequeue-fix_update_hook-1995816-1.patch | 529 bytes | 30equals |
Comments
Comment #1
30equals CreditAttribution: 30equals commentedHi,
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
Comment #2
jenlamptonSince 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.
Comment #3
jenlamptonmaybe this is a better status?