Skip to content

Commit 82e3d61

Browse files
committed
Change user ID column type from big integer to increments for better indexing
1 parent f3bb969 commit 82e3d61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

database/migrations/0001_01_01_000000_create_users_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
public function up(): void
1313
{
1414
Schema::create('users', function (Blueprint $table) {
15-
$table->id();
15+
$table->increments('id');
1616
$table->string('name');
1717
$table->string('email')->unique();
1818
$table->timestamp('email_verified_at')->nullable();

0 commit comments

Comments
 (0)