casetracker_mail.install in Case Tracker 5
File
casetracker_mail.install
View source
<?php
function casetracker_mail_install() {
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
db_query("CREATE TABLE {casetracker_mail} (\n msg_id varchar(250) NOT NULL,\n nid int(11) NOT NULL,\n cid int(11) NOT NULL,\n PRIMARY KEY (msg_id)\n ) /*!40100 DEFAULT CHARACTER SET UTF8 */ ");
break;
case 'pgsql':
db_query("CREATE TABLE {casetracker_mail} (\n msg_id varchar(250) NOT NULL,\n nid numeric(11) NOT NULL,\n cid numeric(11) NOT NULL,\n PRIMARY KEY (msg_id)\n )");
break;
}
}
function casetracker_mail_uninstall() {
db_query('DROP TABLE {casetracker_mail}');
variable_del('casetracker_mail_address');
variable_del('casetracker_mail_subject');
variable_del('casetracker_mail_case_message');
variable_del('casetracker_mail_comment_message');
}