You are here

function content_access_install in Content Access 5

Same name and namespace in other branches
  1. 8 content_access.install \content_access_install()
  2. 6 content_access.install \content_access_install()

File

./content_access.install, line 5

Code

function content_access_install() {
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      db_query("CREATE TABLE {content_access} (\n          nid int(10) unsigned NOT NULL default '0',\n          settings mediumtext NOT NULL,\n          PRIMARY KEY (nid)\n        ) /*!40100 DEFAULT CHARACTER SET utf8 */;");
      break;
    case 'pgsql':
      db_query("CREATE TABLE {content_access} (\n        nid int_unsigned NOT NULL default '0',\n        settings text NOT NULL,\n        PRIMARY KEY (nid)\n      )");
      break;
  }
}