You are here

function commerce_invoice_update_7200 in Commerce Invoice 7.2

Add due date field to {commerce_invoice} table.

File

./commerce_invoice.install, line 264
Install and uninstall functions for the Commerce Invoice module.

Code

function commerce_invoice_update_7200() {
  $field = array(
    'description' => 'The Unix timestamp for the invoice due date.',
    'type' => 'int',
    'not null' => TRUE,
    'unsigned' => TRUE,
    'default' => 0,
  );
  db_add_field('commerce_invoice', 'invoice_due', $field);
}