You are here

function gathercontent_update_7310 in GatherContent 7.3

Add created and changed field for OperationItem.

File

./gathercontent.install, line 421

Code

function gathercontent_update_7310() {
  $created = array(
    'description' => 'The Unix timestamp when the GatherContent operation item was created.',
    'type' => 'int',
    'not null' => TRUE,
    'default' => 0,
  );
  $changed = array(
    'description' => 'The Unix timestamp when the GatherContent operation item was most recently saved.',
    'type' => 'int',
    'not null' => TRUE,
    'default' => 0,
  );
  db_add_field('gathercontent_operation_item', 'created', $created);
  db_add_field('gathercontent_operation_item', 'changed', $changed);
  db_add_index('gathercontent_operation_item', 'gc_id_created', array(
    'gathercontent_id',
    'created',
  ));
}