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}');
}