You are here

function rate_update_7100 in Rate 7

Same name and namespace in other branches
  1. 7.2 rate.install \rate_update_7100()

Create tables for blacklisting bots.

File

./rate.install, line 119
Installation/Uninstallation functions for rate module.

Code

function rate_update_7100() {
  $schema = drupal_get_schema_unprocessed('rate');
  if (!db_table_exists("rate_bot_agent")) {
    db_create_table('rate_bot_agent', $schema['rate_bot_agent']);
  }
  if (!db_table_exists("rate_bot_ip")) {
    db_create_table('rate_bot_ip', $schema['rate_bot_ip']);
  }
}