Adjust contact_important field to after contact_password_reset_token instead

This commit is contained in:
Marcus Hill 2023-01-01 11:26:58 +00:00
parent ab34712bd9
commit d2bbf3436a
1 changed files with 1 additions and 1 deletions

View File

@ -383,7 +383,7 @@ if(LATEST_DATABASE_VERSION > CURRENT_DATABASE_VERSION){
// Add contact_important field to those who don't have it (installed before March 2022)
try {
mysqli_query($mysqli, "ALTER TABLE `contacts` ADD `contact_important` tinyint(1) NOT NULL DEFAULT 0 AFTER contact_password_hash;");
mysqli_query($mysqli, "ALTER TABLE `contacts` ADD `contact_important` tinyint(1) NOT NULL DEFAULT 0 AFTER contact_password_reset_token;");
} catch (Exception $e) {
// Field already exists - that's fine
}