diff options
author | Christian Klinger | 2016-06-17 16:16:26 +0200 |
---|---|---|
committer | Christian Klinger | 2016-06-17 16:16:26 +0200 |
commit | ee62a13b0e6fc14add5189c7fc560dd0670c1aeb (patch) | |
tree | cb9af8bfcf0379c345feef690cf4daf6ff3045b3 | |
parent | Added a localized version of momentjs. (diff) | |
download | slx-admin-ee62a13b0e6fc14add5189c7fc560dd0670c1aeb.tar.gz slx-admin-ee62a13b0e6fc14add5189c7fc560dd0670c1aeb.tar.xz slx-admin-ee62a13b0e6fc14add5189c7fc560dd0670c1aeb.zip |
Added installation script.
-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'); |