]> git.mxchange.org Git - friendica.git/commitdiff
Database Structure version 1312
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 13 May 2019 05:19:05 +0000 (01:19 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 13 May 2019 05:52:00 +0000 (01:52 -0400)
- Add "2fa_recovery_codes" table

config/dbstructure.config.php

index 86965a2019045d7c61ca7aa8bc68d92f9acce4e9..38723ddc1765b68da18759b988a738f91b1ea5e0 100755 (executable)
 use Friendica\Database\DBA;
 
 if (!defined('DB_UPDATE_VERSION')) {
-       define('DB_UPDATE_VERSION', 1311);
+       define('DB_UPDATE_VERSION', 1312);
 }
 
 return [
+       "2fa_recovery_codes" => [
+               "comment" => "Two-factor authentication recovery codes",
+               "fields" => [
+                       "uid" => ["type" => "int unsigned", "not null" => "1", "comment" => "User ID"],
+                       "code" => ["type" => "varchar(50)", "not null" => "1", "comment" => "Recovery code string"],
+                       "generated" => ["type" => "datetime", "not null" => "1", "comment" => "Datetime the code was generated"],
+                       "used" => ["type" => "datetime", "comment" => "Datetime the code was used"],
+               ],
+               "indexes" => [
+                       "PRIMARY" => ["uid", "code"]
+               ]
+       ],
        "addon" => [
                "comment" => "registered addons",
                "fields" => [