--- simple_payments.install.orig	2009-11-17 00:48:49.000000000 -0300
+++ simple_payments.install	2010-07-17 15:35:42.000000000 -0300
@@ -19,7 +19,7 @@
       'currency' => array('type' => 'char', 'length' => 3, 'not null' => TRUE),
       'amount' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE),
       'timestamp' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE),
-      'details' => array('type' => 'text', 'not null' => TRUE, 'serialized' => TRUE),
+      'details' => array('type' => 'text', 'not null' => TRUE, 'serialize' => TRUE),
       'processed' => array('type' => 'int', 'unsigned' => TRUE),
     ),
     'primary key' => array('payment_id'),
@@ -50,3 +50,16 @@
   drupal_uninstall_schema('simple_payments');
 }
 
+/**
+ * Rebuild schema cache 
+ */
+function simple_payments_update_6101() {
+  // rebuild the schema cache
+  $schema = drupal_get_schema('simple_payment', TRUE);
+  if ($schema) {
+    $ret[] = array('success' => TRUE, 'query' => "Rebuilt simple_payment schema."); 
+  }
+  else {
+    $ret['#abort'] = array('success' => FALSE, 'query' => "Rebuilt simple_payment schema failed."); 
+  }
+}
\ No newline at end of file
