Added Project Manager field to projects

This commit is contained in:
johnnyq
2024-04-08 12:22:16 -04:00
parent d2e11fca61
commit 72f96e0ebf
7 changed files with 137 additions and 58 deletions

View File

@@ -1843,10 +1843,17 @@ if (LATEST_DATABASE_VERSION > CURRENT_DATABASE_VERSION) {
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.2.3'");
}
// if (CURRENT_DATABASE_VERSION == '1.2.3') {
// // Insert queries here required to update to DB version 1.2.4
if (CURRENT_DATABASE_VERSION == '1.2.3') {
mysqli_query($mysqli, "ALTER TABLE `projects` ADD `project_manager` INT(11) NOT NULL DEFAULT 0 AFTER `project_due`");
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.2.4'");
}
// if (CURRENT_DATABASE_VERSION == '1.2.4') {
// // Insert queries here required to update to DB version 1.2.5
// // Then, update the database to the next sequential version
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.2.4");
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.2.5");
// }
} else {