fix unique constraint error on dev env

This commit is contained in:
Luan Estradioto 2024-08-15 21:05:00 -03:00
parent fcfbba4dc6
commit ac468f616b

View File

@ -12,6 +12,7 @@ class StandaloneDockerSeeder extends Seeder
*/
public function run(): void
{
if (StandaloneDocker::find(0) == null) {
StandaloneDocker::create([
'id' => 0,
'name' => 'Standalone Docker 1',
@ -19,4 +20,5 @@ public function run(): void
'server_id' => 0,
]);
}
}
}