Database Structure version 1312
- Add "2fa_recovery_codes" table
This commit is contained in:
parent
f4f5f56ec3
commit
c6ef7f5965
|
@ -34,10 +34,22 @@
|
||||||
use Friendica\Database\DBA;
|
use Friendica\Database\DBA;
|
||||||
|
|
||||||
if (!defined('DB_UPDATE_VERSION')) {
|
if (!defined('DB_UPDATE_VERSION')) {
|
||||||
define('DB_UPDATE_VERSION', 1311);
|
define('DB_UPDATE_VERSION', 1312);
|
||||||
}
|
}
|
||||||
|
|
||||||
return [
|
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" => [
|
"addon" => [
|
||||||
"comment" => "registered addons",
|
"comment" => "registered addons",
|
||||||
"fields" => [
|
"fields" => [
|
||||||
|
|
Loading…
Reference in New Issue
Block a user