]> git.mxchange.org Git - friendica.git/blobdiff - src/Database/DBStructure.php
Add pwdreset_time field to user table
[friendica.git] / src / Database / DBStructure.php
index 91a8ffdaf5d8691b5f046971885831ae3ab4e8c1..cb69b49525cab017e7cd4717f558a6278599340c 100644 (file)
@@ -661,7 +661,7 @@ class DBStructure {
                $database = [];
 
                $database["addon"] = [
-                               "comment" => "registered plugins",
+                               "comment" => "registered addons",
                                "fields" => [
                                                "id" => ["type" => "int", "not null" => "1", "extra" => "auto_increment", "primary" => "1", "comment" => ""],
                                                "name" => ["type" => "varchar(190)", "not null" => "1", "default" => "", "comment" => ""],
@@ -1081,7 +1081,7 @@ class DBStructure {
                                                ]
                                ];
                $database["hook"] = [
-                               "comment" => "plugin hook registry",
+                               "comment" => "addon hook registry",
                                "fields" => [
                                                "id" => ["type" => "int", "not null" => "1", "extra" => "auto_increment", "primary" => "1", "comment" => ""],
                                                "hook" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
@@ -1175,7 +1175,6 @@ class DBStructure {
                                                "deleted" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => ""],
                                                "origin" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => ""],
                                                "forum_mode" => ["type" => "tinyint", "not null" => "1", "default" => "0", "comment" => ""],
-                                               "last-child" => ["type" => "boolean", "not null" => "1", "default" => "1", "comment" => ""],
                                                "mention" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => ""],
                                                "network" => ["type" => "varchar(32)", "not null" => "1", "default" => "", "comment" => ""],
                                                "rendered-hash" => ["type" => "varchar(32)", "not null" => "1", "default" => "", "comment" => ""],
@@ -1734,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" => ""],
@@ -1784,6 +1784,6 @@ class DBStructure {
                                                ]
                                ];
 
-               return($database);
+               return $database;
        }
 }