function audit_install
Search API
7.x audit.install | audit_install() |
6.x audit.install | audit_install() |
Implementation of hook_install.
File
- modules/
audit/ audit.install, line 16 - This is the install file for the audit module.
Code
function audit_install() {
if (!db_table_exists("audit_approvals")) {
// Create it.
db_query("CREATE TABLE `audit_approvals` (
`aid` int(10) unsigned NOT NULL AUTO_INCREMENT,
`student_id` varchar(30) DEFAULT '0',
`uid` int(11) DEFAULT 0,
`faculty_id` varchar(30) DEFAULT '0',
`approval_type` varchar(60) DEFAULT '',
`approval_value` varchar(40) DEFAULT '',
`posted` int(10) unsigned NOT NULL,
PRIMARY KEY (`aid`),
KEY `student_id` (`student_id`),
KEY `faculty_id` (`faculty_id`),
KEY `approval_type` (`approval_type`),
KEY `approval_value` (`approval_value`),
KEY `posted` (`posted`),
KEY `uid` (`uid`)
); ");
}
}