diff options
Diffstat (limited to 'modules-available/locationinfo/install.inc.php')
-rw-r--r-- | modules-available/locationinfo/install.inc.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/modules-available/locationinfo/install.inc.php b/modules-available/locationinfo/install.inc.php new file mode 100644 index 00000000..807e2826 --- /dev/null +++ b/modules-available/locationinfo/install.inc.php @@ -0,0 +1,18 @@ +<?php + +$res = array(); + +$res[] = tableCreate('locationinfo', ' + `locationid` INT(11) NOT NULL, + `hidden` BOOLEAN NOT NULL DEFAULT 0, + `computers` BLOB DEFAULT NULL, + PRIMARY KEY (`locationid`) +'); + +// Create response for browser + +if (in_array(UPDATE_DONE, $res)) { + finalResponse(UPDATE_DONE, 'Tables created successfully'); +} + +finalResponse(UPDATE_NOOP, 'Everything already up to date'); |