mirror of
https://github.com/itflow-org/itflow
synced 2026-03-27 15:55:37 +00:00
Add db fields for ticket_quote
This commit is contained in:
@@ -3675,13 +3675,17 @@ if (LATEST_DATABASE_VERSION > CURRENT_DATABASE_VERSION) {
|
|||||||
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '2.2.0'");
|
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '2.2.0'");
|
||||||
}
|
}
|
||||||
|
|
||||||
// if (CURRENT_DATABASE_VERSION == '2.2.0') {
|
if (CURRENT_DATABASE_VERSION == '2.2.0') {
|
||||||
// // Insert queries here required to update to DB version 2.2.1
|
mysqli_query($mysqli, "ALTER TABLE `tickets` ADD `ticket_quote_id` INT(11) NOT NULL DEFAULT 0 AFTER `ticket_asset_id`");
|
||||||
|
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '2.2.1'");
|
||||||
|
}
|
||||||
|
|
||||||
|
// if (CURRENT_DATABASE_VERSION == '2.2.1') {
|
||||||
|
// // Insert queries here required to update to DB version 2.2.2
|
||||||
// // 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` = '2.2.1'");
|
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '2.2.2'");
|
||||||
// }
|
// }
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// Up-to-date
|
// Up-to-date
|
||||||
}
|
}
|
||||||
|
|
||||||
1
db.sql
1
db.sql
@@ -2318,6 +2318,7 @@ CREATE TABLE `tickets` (
|
|||||||
`ticket_contact_id` int(11) NOT NULL DEFAULT 0,
|
`ticket_contact_id` int(11) NOT NULL DEFAULT 0,
|
||||||
`ticket_location_id` int(11) NOT NULL DEFAULT 0,
|
`ticket_location_id` int(11) NOT NULL DEFAULT 0,
|
||||||
`ticket_asset_id` int(11) NOT NULL DEFAULT 0,
|
`ticket_asset_id` int(11) NOT NULL DEFAULT 0,
|
||||||
|
`ticket_quote_id` int(11) NOT NULL DEFAULT 0,
|
||||||
`ticket_invoice_id` int(11) NOT NULL DEFAULT 0,
|
`ticket_invoice_id` int(11) NOT NULL DEFAULT 0,
|
||||||
`ticket_project_id` int(11) NOT NULL DEFAULT 0,
|
`ticket_project_id` int(11) NOT NULL DEFAULT 0,
|
||||||
`ticket_recurring_ticket_id` int(11) DEFAULT 0,
|
`ticket_recurring_ticket_id` int(11) DEFAULT 0,
|
||||||
|
|||||||
@@ -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", "2.2.0");
|
DEFINE("LATEST_DATABASE_VERSION", "2.2.1");
|
||||||
|
|||||||
Reference in New Issue
Block a user