mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-18 22:13:09 +00:00
fix unique constraint error on dev env
This commit is contained in:
1 parent
fcfbba4dc6
commit
ac468f616b
1 file changed
+8
-6
@@ -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