? .cvsignore
? truncated_operation.patch
? truncated_operation2.patch
Index: userpoints.admin.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/userpoints/Attic/userpoints.admin.inc,v
retrieving revision 1.1.2.10
diff -u -p -r1.1.2.10 userpoints.admin.inc
--- userpoints.admin.inc	19 Nov 2010 00:47:21 -0000	1.1.2.10
+++ userpoints.admin.inc	30 Nov 2010 10:21:32 -0000
@@ -156,8 +156,8 @@ function userpoints_admin_txn($form, &$f
       '#type' => 'textfield',
       '#title' => t('Operation'),
       '#default_value' => isset($txn->operation) ? $txn->operation : t('admin'),
-      '#size' => 20,
-      '#maxlength' => 20,
+      '#size' => 32,
+      '#maxlength' => 48,
       '#description' => t('The operation type for this transaction (default is %admin).', array('%admin' => t('admin'))),
       '#weight' => 5,
       '#required' => FALSE,
Index: userpoints.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/userpoints/userpoints.install,v
retrieving revision 1.15.4.4
diff -u -p -r1.15.4.4 userpoints.install
--- userpoints.install	29 Nov 2010 17:59:41 -0000	1.15.4.4
+++ userpoints.install	30 Nov 2010 10:21:32 -0000
@@ -15,7 +15,7 @@ function userpoints_schema() {
     'description' => 'Holds the user points',
     'fields' => array(
       'pid' => array(
-        'description' => 'User ID',
+        'description' => 'Points ID',
         'type' => 'serial',
         'not null' => TRUE,
       ),
@@ -75,7 +75,7 @@ function userpoints_schema() {
         'default' => 0,
       ),
       'approver_uid' => array(
-        'description' => 'Approving User ID',
+        'description' => 'Moderator User ID',
         'type' => 'int',
         'not null' => TRUE,
         'default' => 0,
@@ -121,7 +121,7 @@ function userpoints_schema() {
         'default' => 0,
       ),
       'expired' => array(
-        'description' => 'User ID',
+        'description' => 'Expiration status',
         'type' => 'int',
         'size' => 'tiny',
         'not null' => TRUE,
@@ -148,12 +148,12 @@ function userpoints_schema() {
       'entity_type' => array(
         'description' => 'Type of entity',
         'type' => 'varchar',
-        'length' => 32,
+        'length' => 128,
       ),
       'operation' => array(
         'description' => 'Operation being carried out',
         'type' => 'varchar',
-        'length' => 32,
+        'length' => 48,
       ),
 
     ),
@@ -207,3 +207,20 @@ function userpoints_update_7001() {
   db_add_index('userpoints_txn', 'approver_uid', array('approver_uid'));
   db_add_index('userpoints_txn', 'points', array('points'));
 }
+
+/**
+ * Increase length of operation and entity_type columns.
+ */
+function userpoints_update_7002() {
+  db_change_field('userpoints_txn', 'operation', 'operation', array(
+    'description' => 'Operation being carried out',
+    'type' => 'varchar',
+    'length' => 48,
+  ));
+
+  db_change_field('userpoints_txn', 'entity_type', 'entity_type', array(
+    'description' => 'Type of entity',
+    'type' => 'varchar',
+    'length' => 128,
+  ));
+}
