--- userpoints_votingapi.install.orig	2008-03-28 19:14:46.000000000 -0700
+++ userpoints_votingapi.install	2009-11-08 14:26:30.000000000 -0800
@@ -15,4 +15,14 @@ function userpoints_votingapi_install() 
 */
 function userpoints_votingapi_uninstall() {
   db_query("DELETE FROM {variable} WHERE name like '%userpoints_votingapi%'");
-}
\ No newline at end of file
+}
+
+/**
+ * Change variable name and set default value
+ */
+function userpoints_votingapi_update_6001() {
+  $ret = array();
+  variable_set('userpoints_votingapi_threshold', variable_get('userpoints_votingapi_daily_threshold', 86400));
+  variable_del('userpoints_votingapi_daily_threshold');
+  return $ret;
+}
