From d2bbf3436ae510d4cb440077b7dbf6fc1e941d81 Mon Sep 17 00:00:00 2001 From: Marcus Hill Date: Sun, 1 Jan 2023 11:26:58 +0000 Subject: [PATCH] Adjust contact_important field to after contact_password_reset_token instead --- database_updates.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database_updates.php b/database_updates.php index 33ae3a95..62ceca03 100644 --- a/database_updates.php +++ b/database_updates.php @@ -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 }