Update DB Structure for the addition Email Notify to Recurring Invoices

This commit is contained in:
johnnyq
2024-04-12 19:38:13 -04:00
parent cc9abe5a09
commit ba66dbf887
3 changed files with 12 additions and 5 deletions

View File

@@ -1874,10 +1874,16 @@ if (LATEST_DATABASE_VERSION > CURRENT_DATABASE_VERSION) {
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.2.7'");
}
// if (CURRENT_DATABASE_VERSION == '1.2.7') {
// // Insert queries here required to update to DB version 1.2.8
if (CURRENT_DATABASE_VERSION == '1.2.7') {
mysqli_query($mysqli, "ALTER TABLE `recurring` ADD `recurring_invoice_email_notify` TINYINT(1) NOT NULL DEFAULT 1 AFTER `recurring_note`");
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.2.8'");
}
// if (CURRENT_DATABASE_VERSION == '1.2.8') {
// // Insert queries here required to update to DB version 1.2.9
// // Then, update the database to the next sequential version
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.2.8");
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.2.9");
// }
} else {