Skip to content

Commit 0138786

Browse files
committed
fix: table column types
1 parent 5269e1e commit 0138786

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ public function up(): void
5555
*/
5656
$this->forge->addField([
5757
'id' => ['type' => 'int', 'constraint' => 11, 'unsigned' => true, 'auto_increment' => true],
58-
'ip_address' => ['type' => 'varchar', 'constraint' => 255, 'null' => true],
58+
'ip_address' => ['type' => 'varchar', 'constraint' => 255],
5959
'user_agent' => ['type' => 'varchar', 'constraint' => 255, 'null' => true],
60-
'identifier' => ['type' => 'varchar', 'constraint' => 255, 'null' => true],
60+
'identifier' => ['type' => 'varchar', 'constraint' => 255],
6161
'user_id' => ['type' => 'int', 'constraint' => 11, 'unsigned' => true, 'null' => true], // Only for successful logins
6262
'date' => ['type' => 'datetime'],
6363
'success' => ['type' => 'tinyint', 'constraint' => 1],
@@ -74,9 +74,9 @@ public function up(): void
7474
*/
7575
$this->forge->addField([
7676
'id' => ['type' => 'int', 'constraint' => 11, 'unsigned' => true, 'auto_increment' => true],
77-
'ip_address' => ['type' => 'varchar', 'constraint' => 255, 'null' => true],
77+
'ip_address' => ['type' => 'varchar', 'constraint' => 255],
7878
'user_agent' => ['type' => 'varchar', 'constraint' => 255, 'null' => true],
79-
'identifier' => ['type' => 'varchar', 'constraint' => 255, 'null' => true],
79+
'identifier' => ['type' => 'varchar', 'constraint' => 255],
8080
'user_id' => ['type' => 'int', 'constraint' => 11, 'unsigned' => true, 'null' => true], // Only for successful logins
8181
'date' => ['type' => 'datetime'],
8282
'success' => ['type' => 'tinyint', 'constraint' => 1],

0 commit comments

Comments
 (0)