You are here

function flag_update_6207 in Flag 7.2

Same name and namespace in other branches
  1. 6.2 flag.install \flag_update_6207()
  2. 7.3 flag.install \flag_update_6207()

Adds column last_updated to flag_counts table.

File

./flag.install, line 445
Flag module install/schema/update hooks.

Code

function flag_update_6207() {
  db_add_field('flag_counts', 'last_updated', array(
    'type' => 'int',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => 0,
    'disp-size' => 11,
  ), array(
    'indexes' => array(
      'last_updated' => array(
        'last_updated',
      ),
    ),
  ));
}