Index: sites/all/modules/survey_webform_migrate/survey_webform_migrate.info
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/survey_webform_migrate/survey_webform_migrate.info,v
retrieving revision 1.1
diff -u -r1.1 survey_webform_migrate.info
--- sites/all/modules/survey_webform_migrate/survey_webform_migrate.info 23 Mar 2008 00:23:35 -0000 1.1
+++ sites/all/modules/survey_webform_migrate/survey_webform_migrate.info 23 Apr 2008 02:35:38 -0000
@@ -1,4 +1,5 @@
; $Id: survey_webform_migrate.info,v 1.1 2008/03/23 00:23:35 quicksketch Exp $
name = Survey-Webform Migrate
description = "Migrates survey nodes to webform nodes. Warning: This will IMMEDIATELY convert surveys to webforms upon installation. Backup your database before enabling. After running, this module will disable and uninstall Survey and Forms modules, as well as itself."
-dependencies = webform
\ No newline at end of file
+dependencies = webform
+core = 6.x
\ No newline at end of file
Index: sites/all/modules/survey_webform_migrate/survey_webform_migrate.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/survey_webform_migrate/survey_webform_migrate.install,v
retrieving revision 1.1
diff -u -r1.1 survey_webform_migrate.install
--- sites/all/modules/survey_webform_migrate/survey_webform_migrate.install 23 Mar 2008 00:23:35 -0000 1.1
+++ sites/all/modules/survey_webform_migrate/survey_webform_migrate.install 23 Apr 2008 02:35:38 -0000
@@ -80,8 +80,8 @@
while ($result = db_fetch_object($results)) {
// Start a new result ID.
if ($current_rid != $result->rid) {
- $sid = db_next_id('{webform_submissions}_sid');
- db_query("INSERT INTO {webform_submissions} (nid, sid, uid, submitted, remote_addr) VALUES (%d, %d, %d, %d, '%s')", $result->nid, $sid, $result->uid, $result->created, '127.0.0.1');
+ db_query("INSERT INTO {webform_submissions} (nid, uid, submitted, remote_addr) VALUES (%d, %d, %d, '%s')", $result->nid, $result->uid, $result->created, '127.0.0.1');
+ $sid = db_last_insert_id('{webform_submissions}_sid');
$current_rid = $result->rid;
}