Skip to content

Commit 06d83e2

Browse files
authored
Merge pull request #141 from kenjis/remove-auth_reset_attempts
fix: remove auth_reset_attempts table
2 parents cd1f41e + 389d463 commit 06d83e2

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

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

-13
Original file line numberDiff line numberDiff line change
@@ -83,18 +83,6 @@ public function up(): void
8383
$this->forge->addForeignKey('user_id', 'users', 'id', '', 'CASCADE');
8484
$this->forge->createTable('auth_remember_tokens', true);
8585

86-
// Password Reset Table
87-
$this->forge->addField([
88-
'id' => ['type' => 'int', 'constraint' => 11, 'unsigned' => true, 'auto_increment' => true],
89-
'email' => ['type' => 'varchar', 'constraint' => 255],
90-
'ip_address' => ['type' => 'varchar', 'constraint' => 255],
91-
'user_agent' => ['type' => 'varchar', 'constraint' => 255, 'null' => true],
92-
'token' => ['type' => 'varchar', 'constraint' => 255, 'null' => true],
93-
'created_at' => ['type' => 'datetime', 'null' => false],
94-
]);
95-
$this->forge->addPrimaryKey('id');
96-
$this->forge->createTable('auth_reset_attempts', true);
97-
9886
// Activation Attempts Table
9987
$this->forge->addField([
10088
'id' => ['type' => 'int', 'constraint' => 11, 'unsigned' => true, 'auto_increment' => true],
@@ -138,7 +126,6 @@ public function down(): void
138126
$this->forge->dropTable('users', true);
139127
$this->forge->dropTable('auth_logins', true);
140128
$this->forge->dropTable('auth_remember_tokens', true);
141-
$this->forge->dropTable('auth_reset_attempts', true);
142129
$this->forge->dropTable('auth_activation_attempts', true);
143130
$this->forge->dropTable('auth_access_tokens', true);
144131
$this->forge->dropTable('auth_identities', true);

0 commit comments

Comments
 (0)