mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Renamed error_logs to app_logs, created app logs list view and renamed function logError to logApp, updated some of the log functions in cron and ticket mail parser to use the new appLog
This commit is contained in:
@@ -2352,10 +2352,26 @@ if (LATEST_DATABASE_VERSION > CURRENT_DATABASE_VERSION) {
|
||||
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.7.1'");
|
||||
}
|
||||
|
||||
// if (CURRENT_DATABASE_VERSION == '1.7.1') {
|
||||
// // Insert queries here required to update to DB version 1.7.2
|
||||
if (CURRENT_DATABASE_VERSION == '1.7.1') {
|
||||
|
||||
mysqli_query($mysqli, "DROP TABLE `error_logs`");
|
||||
|
||||
mysqli_query($mysqli, "CREATE TABLE `app_logs` (
|
||||
`app_log_id` INT(11) NOT NULL AUTO_INCREMENT,
|
||||
`app_log_category` VARCHAR(200) NULL DEFAULT NULL,
|
||||
`app_log_type` ENUM('info', 'warning', 'error', 'debug') NOT NULL DEFAULT 'info',
|
||||
`app_log_details` VARCHAR(1000) NULL DEFAULT NULL,
|
||||
`app_log_created_at` DATETIME NOT NULL DEFAULT current_timestamp(),
|
||||
PRIMARY KEY (`app_log_id`)
|
||||
)");
|
||||
|
||||
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.7.2'");
|
||||
}
|
||||
|
||||
// if (CURRENT_DATABASE_VERSION == '1.7.2') {
|
||||
// // Insert queries here required to update to DB version 1.7.3
|
||||
// // Then, update the database to the next sequential version
|
||||
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.7.2'");
|
||||
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.7.3'");
|
||||
// }
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user