Index: ec_store.install
===================================================================
--- ec_store.install	(revision 601)
+++ ec_store.install	(working copy)
@@ -110,7 +110,7 @@
       'type' => array('type' => 'varchar', 'length' => '16', 'not null' => TRUE, 'default' => ''),
       'mail' => array('type' => 'varchar', 'length' => '64', 'not null' => TRUE, 'default' => ''),
       'payment_method' => array('type' => 'varchar', 'length' => '32', 'not null' => TRUE, 'default' => ''),
-      'allocation' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '1'),
+      'allocation' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '1', 'default' => 0),
       'workflow' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10'),
       'shippable' => array('type' => 'int', 'size' => 'tiny', 'default' => 0, 'not null' => FALSE),
       'currency' => array('type' => 'varchar', 'length' => '3', 'not null' => TRUE),
@@ -310,3 +310,11 @@
 
   return $ret;
 }
+
+function ec_store_update_6408() {
+  $ret = array();
+
+  db_change_field($ret, 'ec_transaction', 'allocation', 'allocation', array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '1', 'default' => 0));
+
+  return $ret;
+}
