mirror of
https://github.com/friendica/friendica
synced 2024-12-22 18:00:16 +00:00
Fix database structure definition, primary keys must be marked as this
This commit is contained in:
parent
9519ad2174
commit
48ffed78d7
1 changed files with 2 additions and 2 deletions
|
@ -41,8 +41,8 @@ return [
|
||||||
"2fa_recovery_codes" => [
|
"2fa_recovery_codes" => [
|
||||||
"comment" => "Two-factor authentication recovery codes",
|
"comment" => "Two-factor authentication recovery codes",
|
||||||
"fields" => [
|
"fields" => [
|
||||||
"uid" => ["type" => "int unsigned", "not null" => "1", "comment" => "User ID"],
|
"uid" => ["type" => "mediumint unsigned", "not null" => "1", "primary" => "1", "relation" => ["user" => "uid"], "comment" => "User ID"],
|
||||||
"code" => ["type" => "varchar(50)", "not null" => "1", "comment" => "Recovery code string"],
|
"code" => ["type" => "varchar(50)", "not null" => "1", "primary" => "1", "comment" => "Recovery code string"],
|
||||||
"generated" => ["type" => "datetime", "not null" => "1", "comment" => "Datetime the code was generated"],
|
"generated" => ["type" => "datetime", "not null" => "1", "comment" => "Datetime the code was generated"],
|
||||||
"used" => ["type" => "datetime", "comment" => "Datetime the code was used"],
|
"used" => ["type" => "datetime", "comment" => "Datetime the code was used"],
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue