Commit 7365282f authored by Reto Da Forno's avatar Reto Da Forno
Browse files

new column added to DB table platforms

parent 7d91c616
......@@ -162,6 +162,7 @@ CREATE TABLE `tbl_serv_platforms` (
`freq_868` tinyint(1) NOT NULL DEFAULT '0',
`freq_433` tinyint(1) NOT NULL DEFAULT '0',
`last_changed` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`active` TINYINT NULL DEFAULT 1,
PRIMARY KEY (`serv_platforms_key`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;
......
......@@ -285,6 +285,7 @@ function get_available_platforms() {
FROM `tbl_serv_platforms`
LEFT JOIN `tbl_serv_architectures`
ON `tbl_serv_architectures`.`platforms_fk` = `tbl_serv_platforms`.`serv_platforms_key`
WHERE `active` = 1
ORDER BY `name`, `core` ASC';
$res = mysqli_query($db, $sql) or flocklab_die('Cannot fetch available platforms because: ' . mysqli_error($db));
$num = mysqli_num_rows($res);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment