You are here

function pay_node_update_6001 in Pay 7

Same name and namespace in other branches
  1. 6 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 34
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('pay_form_node', 'method', $spec);
  db_update('pay_form_node')
    ->fields(array(
    'method' => "create",
  ))
    ->execute();
  return t('Added a "method" column to the pay_form_node table.');
}