function pay_node_update_6001 in Pay 6
Same name and namespace in other branches
- 7 modules/pay_node/pay_node.install \pay_node_update_6001()
 
Add a "method" column to the pay_form_node table.
File
- modules/
pay_node/ pay_node.install, line 48  - Install, update and uninstall functions for the Pay Node module.
 
Code
function pay_node_update_6001() {
  $spec = array(
    'type' => 'varchar',
    'length' => 20,
  );
  db_add_field($ret, 'pay_form_node', 'method', $spec);
  $ret[] = update_sql("UPDATE {pay_form_node} SET method = 'create'");
  return $ret;
}