diff options
-rw-r--r-- | modules-available/exams/install.inc.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/modules-available/exams/install.inc.php b/modules-available/exams/install.inc.php new file mode 100644 index 00000000..b61a0af2 --- /dev/null +++ b/modules-available/exams/install.inc.php @@ -0,0 +1,18 @@ +<?php + +$res = array(); + +$res[] = tableCreate('exams', ' + `examid` int(11) NOT NULL AUTO_INCREMENT, + `starttime` int(11) NOT NULL, + `endtime` int(11) NOT NULL, + `description` varchar(100) DEFAULT NULL, + PRIMARY KEY (`examid`) + '); + + +if (in_array(UPDATE_DONE, $res)) { + finalResponse(UPDATE_DONE, 'Tables created successfully'); +} + +finalResponse(UPDATE_NOOP, 'Everything already up to date'); |