Remove MeshCentral integration

As per recent discussions about the API & scripts being a better way forward for all integration, removing the MeshCentral integration that was added.
This commit is contained in:
Marcus Hill
2022-04-19 22:42:38 +01:00
parent 1186e5b5a1
commit f5f033fed4
15 changed files with 20 additions and 3027 deletions

View File

@@ -152,12 +152,23 @@ if(LATEST_DATABASE_VERSION > CURRENT_DATABASE_VERSION){
}
if(CURRENT_DATABASE_VERSION == '0.0.4'){
// Insert queries here required to update to DB version 0.0.5
// Queries here required to update to DB version 0.0.5
mysqli_query($mysqli, "ALTER TABLE `assets` DROP `asset_meshcentral_id`;");
mysqli_query($mysqli, "ALTER TABLE `clients` DROP `client_meshcentral_group`;");
mysqli_query($mysqli, "ALTER TABLE `settings` DROP `config_meshcentral_uri`, DROP `config_meshcentral_user`, DROP `config_meshcentral_secret`;");
// Then, update the database to the next sequential version
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '0.0.5'");
}
if(CURRENT_DATABASE_VERSION == '0.0.5'){
// Insert queries here required to update to DB version 0.0.6
// ALTER queries.....
// Then, update the database to the next sequential version
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '0.0.5'");
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '0.0.6'");
}
// etc