--- C:/Users/GHOSTDEATH/Desktop/userpoints/userpoints.install	Thu Dec 02 11:16:31 2010
+++ C:/Users/GHOSTDEATH/Desktop/userpoints-new/userpoints.install	Wed Feb 02 11:40:30 2011
@@ -22,13 +22,13 @@
       ),
       'points' => array(
         'description' => 'Current Points',
-        'type' => 'int',
+        'type' => 'float',
         'not null' => TRUE,
         'default' => 0,
       ),
       'max_points' => array(
         'description' => 'Out of a maximum points',
-        'type' => 'int',
+        'type' => 'float',
         'not null' => TRUE,
         'default' => 0,
       ),
@@ -74,7 +74,7 @@
       ),
       'points' => array(
         'description' => 'Points',
-        'type' => 'int',
+        'type' => 'float',
         'not null' => TRUE,
         'default' => 0,
       ),
@@ -279,5 +279,18 @@
   $ret = array();
   db_drop_index($ret, 'userpoints_txn', 'status');
   db_add_index($ret, 'userpoints_txn', 'status_expired_expiry', array('status', 'expired', 'expirydate'));
+  return $ret;
+}
+
+/*
+ * From: http://drupal.org/node/417830
+ * Points become float
+ */
+
+ function userpoints_update_6013() {
+  $ret = array();
+  db_change_field($ret, 'userpoints_txn', 'points', 'points', array('type' => 'float', 'not null' => true, 'default' => 0));
+  db_change_field($ret, 'userpoints', 'points', 'points', array('type' => 'float', 'not null' => true, 'default' => 0));
+  db_change_field($ret, 'userpoints', 'max_points', 'max_points', array('type' => 'float', 'not null' => true, 'default' => 0));
   return $ret;
 }
