From 141dad23fe0c4322e3d0f0192c809a1547214914 Mon Sep 17 00:00:00 2001 From: o-psi Date: Fri, 13 Oct 2023 20:12:43 -0500 Subject: [PATCH] Update database, did not do increment --- database_updates.php | 1 + db.sql | 1 + 2 files changed, 2 insertions(+) diff --git a/database_updates.php b/database_updates.php index 8407e94c..e69dd3bc 100644 --- a/database_updates.php +++ b/database_updates.php @@ -1407,6 +1407,7 @@ if (LATEST_DATABASE_VERSION > CURRENT_DATABASE_VERSION) { // //if (CURRENT_DATABASE_VERSION == '0.8.8') { // Insert queries here required to update to DB version 0.8.9 + // mysqli_query($mysqli, "ALTER TABLE `invoice_items` ADD `item_order_id` INT(11) NOT NULL DEFAULT 0 AFTER `item_total`"); // // Then, update the database to the next sequential version //mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '0.8.9'"); diff --git a/db.sql b/db.sql index a3ea4241..c777a9dc 100644 --- a/db.sql +++ b/db.sql @@ -682,6 +682,7 @@ CREATE TABLE `invoice_items` ( `item_subtotal` decimal(15,2) NOT NULL DEFAULT 0.00, `item_tax` decimal(15,2) NOT NULL DEFAULT 0.00, `item_total` decimal(15,2) NOT NULL DEFAULT 0.00, + `item_order_id` int(11) NOT NULL DEFAULT 0, `item_created_at` datetime NOT NULL DEFAULT current_timestamp(), `item_updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp(), `item_archived_at` datetime DEFAULT NULL,