'Store of miscellenous charges', 'export' => array( 'key' => 'name', 'can disable' => FALSE, 'status' => 'enabled', ), 'fields' => array( 'chgid' => array( 'type' => 'serial', 'not null' => TRUE, 'disp-width' => '11', 'description' => 'Primary Key: Unique ID for each charge', 'no export' => TRUE, ), 'name' => array( 'type' => 'varchar', 'length' => 32, 'not null' => TRUE, 'description' => 'Unique identifier for each charge', ), 'chg_type' => array( 'type' => 'int', 'not null' => TRUE, 'default' => 0, 'description' => 'Indicates the charge type, transaction/product', ), 'chg_group' => array( 'type' => 'varchar', 'not null' => TRUE, 'length' => 16, 'default' => '', ), 'description' => array( 'type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => '', 'description' => 'Description of the charge that will appear on the transaction', ), 'filters' => array( 'type' => 'text', 'size' => 'medium', 'serialize' => TRUE, ), 'variables' => array( 'type' => 'text', 'size' => 'medium', 'serialize' => TRUE, ), 'calculations' => array( 'type' => 'text', 'size' => 'medium', 'serialize' => TRUE, ), 'modifications' => array( 'type' => 'text', 'size' => 'medium', 'serialize' => TRUE, ), 'weight' => array( 'type' => 'int', 'not null' => TRUE, 'default' => 0, 'description' => 'Weight of the charge to determine the order', ), 'enabled' => array( 'type' => 'int', 'not null' => TRUE, 'default' => 0, 'size' => 'tiny', 'description' => 'Set the charged as enabled.', ), ), 'primary key' => array('chgid'), ); return $schema; } /** * Implements hook_update_last_removed(). */ function ec_charge_update_last_removed() { return 6408; }