Slight change required for 6.x compatibility

freemed - April 22, 2008 - 15:44
Project:Survey-Webform Migrate
Version:5.x-1.0
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:needs review
Description

db_next_id() call in the install script has to be changed slightly from:

$sid = db_next_id('{webform_submissions}_sid');

to

$sid = db_result(db_query('SELECT MAX({webform_submissions}_sid) FROM {webform_submissions}')) + 1;

or something like that, as well as updating the meta information present in the info file. Otherwise, it does look like the module will work fine under 6.x.

#1

quicksketch - April 23, 2008 - 02:38
Category:bug report» task
Status:active» needs review

Not a bug report if this wasn't written for 6 :)

If you're currently trying to move from Survey on Drupal 5 to Webform on Drupal 6, I wouldn't mind if you tried to test out this functionality by using the provided patch. It might help others trying to do the same move.

Even though the instructions on the project page say you should upgrade on Drupal 5, I bet a lot of people will try to shortcut directly in their upgrade to D6.

AttachmentSize
survey_webform_migrate6.patch 2.27 KB
 
 

Drupal is a registered trademark of Dries Buytaert.