Index: ec_receipt.install
===================================================================
--- ec_receipt.install	(revision 600)
+++ ec_receipt.install	(working copy)
@@ -53,11 +53,11 @@
       'type' => array('type' => 'varchar', 'length' => '32', 'not null' => TRUE),
       'name' => array('type' => 'varchar', 'length' => '32', 'not null' => TRUE),
       'description' => array('type' => 'text', 'not null' => TRUE),
-      'allow_payments' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '1'),
-      'allow_admin_payments' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '1'),
-      'allow_refunds' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '1'),
-      'allow_payto' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '1'),
-      'allow_recurring' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '1'),
+      'allow_payments' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '1', 'default' => 0),
+      'allow_admin_payments' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '1', 'default' => 0),
+      'allow_refunds' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '1', 'default' => 0),
+      'allow_payto' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '1', 'default' => 0),
+      'allow_recurring' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '1', 'default' => 0),
       'weight' => array('type' => 'int', 'not null' => TRUE, 'disp-width' => '10')),
     'primary key' => array('type'),
   );
@@ -125,3 +125,15 @@
 
   return $requirements;
 }
+
+function ec_receipt_update_6401() {
+  $ret = array();
+
+  db_change_field($ret, 'ec_receipt_types', 'allow_payments', 'allow_payments', array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '1', 'default' => 0));
+  db_change_field($ret, 'ec_receipt_types', 'allow_admin_payments', 'allow_admin_payments', array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '1', 'default' => 0));
+  db_change_field($ret, 'ec_receipt_types', 'allow_refunds', 'allow_refunds', array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '1', 'default' => 0));
+  db_change_field($ret, 'ec_receipt_types', 'allow_payto', 'allow_payto', array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '1', 'default' => 0));
+  db_change_field($ret, 'ec_receipt_types', 'allow_recurring', 'allow_recurring', array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '1', 'default' => 0));
+
+  return $ret;
+}
