function domain_conf_install in Domain Access 5
Same name and namespace in other branches
- 6.2 domain_conf/domain_conf.install \domain_conf_install()
Implement hook_install()
File
- domain_conf/
domain_conf.install, line 11 - Install file.
Code
function domain_conf_install() {
switch ($GLOBALS['db_type']) {
case 'mysqli':
case 'mysql':
db_query("CREATE TABLE IF NOT EXISTS {domain_conf} (\n domain_id int(11) NOT NULL default '0',\n settings blob,\n PRIMARY KEY (domain_id)\n ) /*!40100 DEFAULT CHARACTER SET UTF8 */ ");
break;
case 'pgsql':
db_query("CREATE TABLE {domain_conf} (\n domain_id integer NOT NULL default '0',\n settings bytea,\n PRIMARY KEY (domain_id)\n )");
break;
}
}