blob: 5f58388bbe12934fb79fcabb4a8b5db81f102646 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<?php
$res = array();
$res[] = tableCreate('location_info', '
`locationid` INT(11) NOT NULL,
`hidden` BOOLEAN NOT NULL DEFAULT 0,
`openingtime` VARCHAR(2000) NOT NULL,
`config` VARCHAR(2000) NOT 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');
|