You are here

private.install in Private 5

Same filename and directory in other branches
  1. 6 private.install
  2. 7.2 private.install
  3. 7 private.install

File

private.install
View source
<?php

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;
  }
}
function private_uninstall() {
  db_query('DROP TABLE {private}');
}

Functions