FEATURE: Estimated Time Completion on Tasks - Phase 1 DB Structure update

This commit is contained in:
johnnyq
2024-10-23 13:28:46 -04:00
parent 808fdf5f76
commit dffc97859d
3 changed files with 15 additions and 5 deletions

View File

@@ -2284,10 +2284,18 @@ if (LATEST_DATABASE_VERSION > CURRENT_DATABASE_VERSION) {
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.5.8'");
}
// if (CURRENT_DATABASE_VERSION == '1.5.8') {
// // Insert queries here required to update to DB version 1.5.9
if (CURRENT_DATABASE_VERSION == '1.5.8') {
// Add task completetion estimate time to tasks and task templates
mysqli_query($mysqli, "ALTER TABLE `tasks` ADD `task_completion_estimate` INT(11) NOT NULL DEFAULT 0 AFTER `task_order`");
mysqli_query($mysqli, "ALTER TABLE `task_templates` ADD `task_template_completion_estimate` INT(11) NOT NULL DEFAULT 0 AFTER `task_template_order`");
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.5.9'");
}
// if (CURRENT_DATABASE_VERSION == '1.5.9') {
// // Insert queries here required to update to DB version 1.6.0
// // Then, update the database to the next sequential version
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.5.9'");
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.6.0'");
// }
} else {