mirror of
https://github.com/itflow-org/itflow
synced 2026-03-06 05:44:52 +00:00
FEATURE: Estimated Time Completion on Tasks - Phase 1 DB Structure update
This commit is contained in:
@@ -2284,10 +2284,18 @@ if (LATEST_DATABASE_VERSION > CURRENT_DATABASE_VERSION) {
|
|||||||
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.5.8'");
|
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.5.8'");
|
||||||
}
|
}
|
||||||
|
|
||||||
// if (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
|
// 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
|
// // 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 {
|
} else {
|
||||||
|
|||||||
@@ -5,4 +5,4 @@
|
|||||||
* It is used in conjunction with database_updates.php
|
* It is used in conjunction with database_updates.php
|
||||||
*/
|
*/
|
||||||
|
|
||||||
DEFINE("LATEST_DATABASE_VERSION", "1.5.8");
|
DEFINE("LATEST_DATABASE_VERSION", "1.5.9");
|
||||||
|
|||||||
4
db.sql
4
db.sql
@@ -1691,6 +1691,7 @@ CREATE TABLE `task_templates` (
|
|||||||
`task_template_id` int(11) NOT NULL AUTO_INCREMENT,
|
`task_template_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
`task_template_name` varchar(200) NOT NULL,
|
`task_template_name` varchar(200) NOT NULL,
|
||||||
`task_template_order` int(11) NOT NULL DEFAULT 0,
|
`task_template_order` int(11) NOT NULL DEFAULT 0,
|
||||||
|
`task_template_completion_estimate` int(11) NOT NULL DEFAULT 0,
|
||||||
`task_template_created_at` datetime NOT NULL DEFAULT current_timestamp(),
|
`task_template_created_at` datetime NOT NULL DEFAULT current_timestamp(),
|
||||||
`task_template_updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp(),
|
`task_template_updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp(),
|
||||||
`task_template_archived_at` datetime DEFAULT NULL,
|
`task_template_archived_at` datetime DEFAULT NULL,
|
||||||
@@ -1711,6 +1712,7 @@ CREATE TABLE `tasks` (
|
|||||||
`task_name` varchar(255) NOT NULL,
|
`task_name` varchar(255) NOT NULL,
|
||||||
`task_status` varchar(255) DEFAULT NULL,
|
`task_status` varchar(255) DEFAULT NULL,
|
||||||
`task_order` int(11) NOT NULL DEFAULT 0,
|
`task_order` int(11) NOT NULL DEFAULT 0,
|
||||||
|
`task_completion_estimate` int(11) NOT NULL DEFAULT 0,
|
||||||
`task_completed_at` datetime DEFAULT NULL,
|
`task_completed_at` datetime DEFAULT NULL,
|
||||||
`task_completed_by` int(11) DEFAULT NULL,
|
`task_completed_by` int(11) DEFAULT NULL,
|
||||||
`task_created_at` datetime NOT NULL DEFAULT current_timestamp(),
|
`task_created_at` datetime NOT NULL DEFAULT current_timestamp(),
|
||||||
@@ -2112,4 +2114,4 @@ CREATE TABLE `vendors` (
|
|||||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||||
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
||||||
|
|
||||||
-- Dump completed on 2024-10-22 23:52:12
|
-- Dump completed on 2024-10-23 13:27:47
|
||||||
|
|||||||
Reference in New Issue
Block a user