Index: advpoll.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/advpoll/advpoll.install,v
retrieving revision 1.5.2.17
diff -u -p -r1.5.2.17 advpoll.install
--- advpoll.install	30 Nov 2007 14:13:18 -0000	1.5.2.17
+++ advpoll.install	2 Dec 2007 16:32:01 -0000
@@ -266,3 +266,15 @@ function advpoll_update_6() {
   }
   return $ret;
 }
+
+/**
+ * Missing conversion code for Drupal 4.7 -> 5 upgrade.
+ *
+ * This will have no effect on an existing Drupal 5 installation.
+ */
+function advpoll_update_7() {
+  $ret = array();
+  $ret[] = update_sql('UPDATE {node} SET type = "advpoll_binary" WHERE type = "advpoll-binary"');
+  $ret[] = update_sql('UPDATE {node} SET type = "advpoll_ranking" WHERE type = "advpoll-ranking"');
+  return $ret;
+}
