You are here

function invoice_update_2 in Invoice 6

Implementation of hook_update_N()

Return value

array Array with query results

File

./invoice.install, line 170

Code

function invoice_update_2() {
  $ret = array();

  // Array to which query results will be added.
  db_add_field($ret, 'invoice_templates', 'display_column_vat', array(
    'type' => 'int',
    'size' => 'tiny',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => 0,
  ));
  db_add_field($ret, 'invoice_templates', 'display_column_exunitcost', array(
    'type' => 'int',
    'size' => 'tiny',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => 1,
  ));
  db_add_field($ret, 'invoice_templates', 'display_column_incunitcost', array(
    'type' => 'int',
    'size' => 'tiny',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => 1,
  ));
  db_add_field($ret, 'invoice_templates', 'display_column_extotal', array(
    'type' => 'int',
    'size' => 'tiny',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => 1,
  ));
  db_add_field($ret, 'invoice_templates', 'display_column_inctotal', array(
    'type' => 'int',
    'size' => 'tiny',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => 1,
  ));
  return $ret;

  // Array with query results.
}