Skip to content

Commit e395fe1

Browse files
committed
feat: set random Auto-increment after migrating users table
1 parent e5a1e5f commit e395fe1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

database/migrations/2014_10_12_000000_create_users_table.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ public function up(): void
2222
$table->string('profile_photo_path', 2048)->nullable();
2323
$table->timestamps();
2424
});
25+
26+
$index = rand(2344, 8988);
27+
DB::statement("ALTER TABLE users AUTO_INCREMENT = $index");
2528
}
2629

2730
/**

0 commit comments

Comments
 (0)