This commit is contained in:
2025-10-31 02:39:34 +05:00
parent b858e02bf3
commit e61f5d315e
2 changed files with 9 additions and 63 deletions

View File

@@ -32,8 +32,10 @@ class UsersTableSeeder extends Seeder
'must_fill_profile' => true,
]);
DB::statement("SELECT setval('users_id_seq', (SELECT MAX(id) from users));");
DB::statement("SELECT nextval('users_id_seq');");
if (config('database.default') === 'pgsql') {
DB::statement("SELECT setval('users_id_seq', (SELECT MAX(id) from users));");
DB::statement("SELECT nextval('users_id_seq');");
}
User::factory()->count(3)->create(['password' => bcrypt('payload10')]);
}