1
0
Fork 0

Merge pull request #7147 from annando/fix-structure

Fix database structure definition, primary keys must be marked as this
This commit is contained in:
Hypolite Petovan 2019-05-17 08:22:42 -04:00 committed by GitHub
commit 3f0aef9c72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,8 +41,8 @@ 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"],
"uid" => ["type" => "mediumint unsigned", "not null" => "1", "primary" => "1", "relation" => ["user" => "uid"], "comment" => "User ID"],
"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"],
"used" => ["type" => "datetime", "comment" => "Datetime the code was used"],
],