-
-
Notifications
You must be signed in to change notification settings - Fork 412
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing #5660 - Unknown System Hash Warning
Warning about unknown system hash during the update
- Loading branch information
1 parent
60043cb
commit 2c961b1
Showing
3 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
/* | ||
+-------------------------------------------------------------------------+ | ||
| Copyright (C) 2004-2024 The Cacti Group | | ||
| | | ||
| This program is free software; you can redistribute it and/or | | ||
| modify it under the terms of the GNU General Public License | | ||
| as published by the Free Software Foundation; either version 2 | | ||
| of the License, or (at your option) any later version. | | ||
| | | ||
| This program is distributed in the hope that it will be useful, | | ||
| but WITHOUT ANY WARRANTY; without even the implied warranty of | | ||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | | ||
| GNU General Public License for more details. | | ||
+-------------------------------------------------------------------------+ | ||
| Cacti: The Complete RRDTool-based Graphing Solution | | ||
+-------------------------------------------------------------------------+ | ||
| This code is designed, written, and maintained by the Cacti Group. See | | ||
| about.php and/or the AUTHORS file for specific developer information. | | ||
+-------------------------------------------------------------------------+ | ||
| http://www.cacti.net/ | | ||
+-------------------------------------------------------------------------+ | ||
*/ | ||
|
||
function upgrade_to_1_2_27() { | ||
$data_input_field_id = db_fetch_cell_prepared('SELECT id FROM data_input_fields WHERE hash = ?', array('35637c344d84d8aa3a4dc50e4a120b3f')); | ||
|
||
if ($data_input_field_id > 0) { | ||
db_execute_prepared('DELETE FROM data_input_fields WHERE id = ?', array($data_input_field_id)); | ||
db_execute_prepared('DELETE FROM data_input_data WHERE data_input_field_id = ?', array($data_input_field_id)); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters