Update Database to match
This commit is contained in:
+12
-3
@@ -1559,14 +1559,23 @@ if (LATEST_DATABASE_VERSION > CURRENT_DATABASE_VERSION) {
|
|||||||
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.0.2'");
|
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.0.2'");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (CURRENT_DATABASE_VERSION == '1.0.2') {
|
||||||
|
//Insert queries here required to update to DB version 1.0.3
|
||||||
|
mysqli_query($mysqli, "ALTER TABLE `tickets` ADD `ticket_schedule` DATETIME DEFAULT NULL AFTER `ticket_billable`");
|
||||||
|
|
||||||
|
//Then, update the database to the next sequential version
|
||||||
|
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.0.3'");
|
||||||
|
}
|
||||||
|
|
||||||
// Be sure to change database_version.php to reflect the version you are updating to here
|
// Be sure to change database_version.php to reflect the version you are updating to here
|
||||||
// Please add this same comment block to the bottom of this file, and update the version number.
|
// Please add this same comment block to the bottom of this file, and update the version number.
|
||||||
// Uncomment Below Lines, to add additional database updates
|
// Uncomment Below Lines, to add additional database updates
|
||||||
//
|
//
|
||||||
// if (CURRENT_DATABASE_VERSION == '1.0.2') {
|
// if (CURRENT_DATABASE_VERSION == '1.0.3') {
|
||||||
// // Insert queries here required to update to DB version 1.0.3
|
// // Insert queries here required to update to DB version 1.0.4
|
||||||
// // 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.0.3'");
|
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.0.4'");
|
||||||
// }
|
// }
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -5,5 +5,5 @@
|
|||||||
* It is used in conjunction with database_updates.php
|
* It is used in conjunction with database_updates.php
|
||||||
*/
|
*/
|
||||||
|
|
||||||
DEFINE("LATEST_DATABASE_VERSION", "1.0.2");
|
DEFINE("LATEST_DATABASE_VERSION", "1.0.3");
|
||||||
|
|
||||||
|
|||||||
@@ -1565,6 +1565,7 @@ CREATE TABLE `tickets` (
|
|||||||
`ticket_priority` varchar(200) DEFAULT NULL,
|
`ticket_priority` varchar(200) DEFAULT NULL,
|
||||||
`ticket_status` varchar(200) NOT NULL,
|
`ticket_status` varchar(200) NOT NULL,
|
||||||
`ticket_billable` tinyint(1) NOT NULL DEFAULT 0,
|
`ticket_billable` tinyint(1) NOT NULL DEFAULT 0,
|
||||||
|
`ticket_schedule` DATETIME DEFAULT NULL,
|
||||||
`ticket_vendor_ticket_number` varchar(255) DEFAULT NULL,
|
`ticket_vendor_ticket_number` varchar(255) DEFAULT NULL,
|
||||||
`ticket_feedback` varchar(200) DEFAULT NULL,
|
`ticket_feedback` varchar(200) DEFAULT NULL,
|
||||||
`ticket_created_at` datetime NOT NULL DEFAULT current_timestamp(),
|
`ticket_created_at` datetime NOT NULL DEFAULT current_timestamp(),
|
||||||
|
|||||||
Reference in New Issue
Block a user