You are here

function counter_update_6005 in Counter 6.2

1 call to counter_update_6005()
counter_install in ./counter.install
Install the module with a new database table @file

File

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

Code

function counter_update_6005() {
  $ret = array();
  $schema = counter_schema();
  _drupal_initialize_schema('counter', $schema);
  foreach ($schema as $name => $table) {
    if (!db_table_exists($name)) {
      db_create_table($ret, $name, $table);
    }
  }
  return $ret;
}