You are here

function reviews_update_7001 in Reviews 7

Add the reviews_count table to the database

1 call to reviews_update_7001()
reviews_install in ./reviews.install
Implements hook_install().

File

./reviews.install, line 109
Defines database schema for reviews and installs/uninstalls all necessary settings.

Code

function reviews_update_7001() {
  if (!db_table_exists('reviews_count')) {
    db_create_table('reviews_count', drupal_get_schema_unprocessed('reviews', 'reviews_count'));
    return 'Added the \'reviews_count\' table for the Reviews module.';
  }
}