mirror of
https://github.com/itflow-org/itflow
synced 2026-03-06 05:44:52 +00:00
fix database
This commit is contained in:
@@ -1508,8 +1508,9 @@ if (LATEST_DATABASE_VERSION > CURRENT_DATABASE_VERSION) {
|
|||||||
|
|
||||||
if (CURRENT_DATABASE_VERSION == '0.9.6') {
|
if (CURRENT_DATABASE_VERSION == '0.9.6') {
|
||||||
// Insert queries here required to update to DB version 0.9.7
|
// Insert queries here required to update to DB version 0.9.7
|
||||||
mysqli_query($mysqli, "ALTER TABLE `tickets` ADD `ticket_invoice_id` INT(11) NULL DEFAULT NULL AFTER `ticket_asset_id`");
|
mysqli_query($mysqli, "ALTER TABLE `tickets` ADD `ticket_invoice_id` INT(11) NOT NULL DEFAULT 0 AFTER `ticket_asset_id`");
|
||||||
mysqli_query($mysqli, "ALTER TABLE `tickets` ADD `ticket_billable` TINYINT(1) NOT NULL DEFAULT 0 AFTER `ticket_status`");
|
mysqli_query($mysqli, "ALTER TABLE `tickets` ADD `ticket_billable` TINYINT(1) NOT NULL DEFAULT 0 AFTER `ticket_status`");
|
||||||
|
//set all invoice id
|
||||||
// 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` = '0.9.7'");
|
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '0.9.7'");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user