<?php
function statistics_filter_install() {
  switch ($GLOBALS['db_type']) {
    case 'mysqli':
    case 'mysql':
      db_query("CREATE TABLE {statistics_filter_browsers} (
                browser VARCHAR(255) NOT NULL,
                counter INT DEFAULT '0' NOT NULL,
                is_crawler TINYINT(1) DEFAULT '0' NOT NULL,
                PRIMARY KEY (browser)
                );");
    break;
    case 'pgsql':
      db_query("CREATE TABLE {statistics_filter_browsers} (
                browser VARCHAR(255) PRIMARY KEY,
                counter integer DEFAULT 0 NOT NULL,
                is_crawler smallint DEFAULT 0 NOT NULL
                );");
  }
}
