mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 10:54:52 +00:00
Feature: Part 1 - DB Schemea update for Default Hourly Rate
This commit is contained in:
@@ -1491,11 +1491,18 @@ if (LATEST_DATABASE_VERSION > CURRENT_DATABASE_VERSION) {
|
||||
|
||||
}
|
||||
|
||||
//if (CURRENT_DATABASE_VERSION == '0.9.1') {
|
||||
// Insert queries here required to update to DB version 0.9.0
|
||||
if (CURRENT_DATABASE_VERSION == '0.9.3') {
|
||||
mysqli_query($mysqli, "ALTER TABLE `settings` ADD `config_default_hourly_rate` DECIMAL(15,2) NOT NULL DEFAULT 0.00 AFTER `config_default_net_terms`");
|
||||
|
||||
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '0.9.4'");
|
||||
|
||||
}
|
||||
|
||||
//if (CURRENT_DATABASE_VERSION == '0.9.4') {
|
||||
// Insert queries here required to update to DB version 0.9.5
|
||||
|
||||
// Then, update the database to the next sequential version
|
||||
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '0.9.2'");
|
||||
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '0.9.5'");
|
||||
//}
|
||||
} else {
|
||||
// Up-to-date
|
||||
|
||||
Reference in New Issue
Block a user