Calendar start day

Allow customising the calendar to start on a Monday instead of Sunday
This commit is contained in:
Marcus Hill
2024-05-26 23:38:50 +01:00
parent 5210fae3ec
commit fbc87572e9
6 changed files with 48 additions and 10 deletions

View File

@@ -1912,10 +1912,16 @@ if (LATEST_DATABASE_VERSION > CURRENT_DATABASE_VERSION) {
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.3.1'");
}
// if (CURRENT_DATABASE_VERSION == '1.3.1') {
// // Insert queries here required to update to DB version 1.3.1
if (CURRENT_DATABASE_VERSION == '1.3.1') {
mysqli_query($mysqli, "ALTER TABLE `user_settings` ADD `user_config_calendar_first_day` TINYINT(1) NOT NULL DEFAULT 0 AFTER `user_config_dashboard_technical_enable`");
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.3.2'");
}
// if (CURRENT_DATABASE_VERSION == '1.3.2') {
// // Insert queries here required to update to DB version 1.3.2
// // Then, update the database to the next sequential version
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.3.2'");
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.3.3'");
// }
} else {