Skip to content

Commit a1382f6

Browse files
committed
fix: add missing unique key
1 parent 020b48f commit a1382f6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Database/Migrations/2020-12-28-223112_create_auth_tables.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ public function up(): void
4646
'updated_at' => ['type' => 'datetime', 'null' => true],
4747
]);
4848
$this->forge->addPrimaryKey('id');
49+
$this->forge->addUniqueKey(['type', 'secret']);
4950
$this->forge->addKey('user_id');
5051
$this->forge->addForeignKey('user_id', 'users', 'id', '', 'CASCADE');
5152
$this->forge->createTable('auth_identities', true);

0 commit comments

Comments
 (0)