mirror of
https://gitlab.linphone.org/BC/public/flexisip-account-manager.git
synced 2026-04-17 19:58:27 +00:00
Uses updateOrCreate instead of just create
This commit is contained in:
parent
88f0d898fa
commit
3852218558
1 changed files with 4 additions and 4 deletions
|
|
@ -9,9 +9,9 @@ class AccountTypeSeeder extends Seeder
|
|||
{
|
||||
public function run()
|
||||
{
|
||||
AccountType::create(['key' => 'device_audio_intercom']);
|
||||
AccountType::create(['key' => 'device_video_intercom']);
|
||||
AccountType::create(['key' => 'device_security_camera']);
|
||||
AccountType::create(['key' => 'device_internal_unit']);
|
||||
AccountType::updateOrCreate(['key' => 'device_audio_intercom']);
|
||||
AccountType::updateOrCreate(['key' => 'device_video_intercom']);
|
||||
AccountType::updateOrCreate(['key' => 'device_security_camera']);
|
||||
AccountType::updateOrCreate(['key' => 'device_internal_unit']);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue