diff options
Diffstat (limited to 'modules/contact/contact.install')
-rw-r--r-- | modules/contact/contact.install | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/modules/contact/contact.install b/modules/contact/contact.install new file mode 100644 index 000000000..b5f2ae67a --- /dev/null +++ b/modules/contact/contact.install @@ -0,0 +1,18 @@ +<?php + +function contact_install() { + switch ($GLOBALS['db_type']) { + case 'mysql': + case 'mysqli': + db_query("CREATE TABLE {contact} ( + cid int(10) unsigned NOT NULL auto_increment, + category varchar(255) NOT NULL default '', + recipients longtext NOT NULL default '', + reply longtext NOT NULL default '', + weight tinyint(3) NOT NULL default '0', + selected tinyint(1) NOT NULL default '0', + PRIMARY KEY (cid), + UNIQUE KEY category (category) + ) /*!40100 DEFAULT CHARACTER SET UTF8 */ "); + } +}
\ No newline at end of file |