You are here

function counter_update_7103 in Counter 7

Add field: uid

1 call to counter_update_7103()
counter_install in ./counter.install
Implements hook_install().

File

./counter.install, line 194
Install the module with a new database table

Code

function counter_update_7103() {
  if (!db_field_exists('counter', 'uid')) {
    db_add_field('counter', 'uid', array(
      'type' => 'int',
      'not null' => TRUE,
      'default' => 0,
    ));
    db_add_index('counter', 'uid', array(
      'uid',
    ));
  }
}