From 391c5913227c7f62f19b4f08906b0b1b0b618b33 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 20 Jan 2018 18:06:58 -0500 Subject: [PATCH] Add pwdreset_time field to user table --- boot.php | 2 +- src/Database/DBStructure.php | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/boot.php b/boot.php index 776cf49fa8..4d2eac35a3 100644 --- a/boot.php +++ b/boot.php @@ -41,7 +41,7 @@ define('FRIENDICA_PLATFORM', 'Friendica'); define('FRIENDICA_CODENAME', 'Asparagus'); define('FRIENDICA_VERSION', '3.6-dev'); define('DFRN_PROTOCOL_VERSION', '2.23'); -define('DB_UPDATE_VERSION', 1242); +define('DB_UPDATE_VERSION', 1243); define('NEW_UPDATE_ROUTINE_VERSION', 1170); /** diff --git a/src/Database/DBStructure.php b/src/Database/DBStructure.php index 3f4614b6c7..cb69b49525 100644 --- a/src/Database/DBStructure.php +++ b/src/Database/DBStructure.php @@ -1733,7 +1733,8 @@ class DBStructure { "page-flags" => ["type" => "tinyint", "not null" => "1", "default" => "0", "comment" => ""], "account-type" => ["type" => "tinyint", "not null" => "1", "default" => "0", "comment" => ""], "prvnets" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => ""], - "pwdreset" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""], + "pwdreset" => ["type" => "varchar(255)", "comment" => "Password reset request token"], + "pwdreset_time" => ["type" => "datetime", "comment" => "Timestamp of the last password reset request"], "maxreq" => ["type" => "int", "not null" => "1", "default" => "10", "comment" => ""], "expire" => ["type" => "int", "not null" => "1", "default" => "0", "comment" => ""], "account_removed" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => ""], @@ -1783,6 +1784,6 @@ class DBStructure { ] ]; - return($database); + return $database; } }