Merge pull request #3100 from LEstradioto/fix-unique-constraint-error-on-dev-env

fix unique constraint error on dev env
This commit is contained in:
Andras Bacsai
2024-08-16 10:44:14 +02:00
committed by GitHub

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 @@ class StandaloneDockerSeeder extends Seeder
'server_id' => 0,
]);
}
}
}