Skip to content

Commit

Permalink
Phase 1 - Combining contact logins with users table - Add User Type f…
Browse files Browse the repository at this point in the history
…ield to users table
  • Loading branch information
johnnyq committed Oct 22, 2024
1 parent ea494a8 commit 48b3064
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions database_updates.php
Original file line number Diff line number Diff line change
Expand Up @@ -2237,10 +2237,15 @@
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.5.3'");
}

// if (CURRENT_DATABASE_VERSION == '1.5.3') {
// // Insert queries here required to update to DB version 1.5.4
if (CURRENT_DATABASE_VERSION == '1.5.3') {
mysqli_query($mysqli, "ALTER TABLE `users` ADD `user_type` TINYINT(1) NOT NULL DEFAULT 1 AFTER `user_password`");
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.5.4'");
}

// if (CURRENT_DATABASE_VERSION == '1.5.4') {
// // Insert queries here required to update to DB version 1.5.5
// // Then, update the database to the next sequential version
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.5.4'");
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.5.5'");
// }

} else {
Expand Down
2 changes: 1 addition & 1 deletion database_version.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
* It is used in conjunction with database_updates.php
*/

DEFINE("LATEST_DATABASE_VERSION", "1.5.3");
DEFINE("LATEST_DATABASE_VERSION", "1.5.4");

0 comments on commit 48b3064

Please sign in to comment.