fix unique constraint error on dev env
This commit is contained in:
@@ -12,11 +12,13 @@ class StandaloneDockerSeeder extends Seeder
|
|||||||
*/
|
*/
|
||||||
public function run(): void
|
public function run(): void
|
||||||
{
|
{
|
||||||
StandaloneDocker::create([
|
if (StandaloneDocker::find(0) == null) {
|
||||||
'id' => 0,
|
StandaloneDocker::create([
|
||||||
'name' => 'Standalone Docker 1',
|
'id' => 0,
|
||||||
'network' => 'coolify',
|
'name' => 'Standalone Docker 1',
|
||||||
'server_id' => 0,
|
'network' => 'coolify',
|
||||||
]);
|
'server_id' => 0,
|
||||||
|
]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user