You are here

function private_install in Private 5

Same name and namespace in other branches
  1. 6 private.install \private_install()

File

./private.install, line 3

Code

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