mirror of
https://gitlab.linphone.org/BC/public/flexisip-account-manager.git
synced 2026-01-17 10:08:05 +00:00
Fix FLEXIAPI-416 Respect the Spaces columns contraints in LiblinphoneTesterAccoutSeeder
This commit is contained in:
parent
747dec721f
commit
2dc2200171
1 changed files with 3 additions and 1 deletions
|
|
@ -92,6 +92,8 @@ class LiblinphoneTesterAccoutSeeder extends Seeder
|
||||||
foreach ($domains as $domain) {
|
foreach ($domains as $domain) {
|
||||||
$space = Space::where('domain', $domain)->firstOrNew();
|
$space = Space::where('domain', $domain)->firstOrNew();
|
||||||
$space->domain = $domain;
|
$space->domain = $domain;
|
||||||
|
$space->host = $domain;
|
||||||
|
$space->name = $domain;
|
||||||
$space->save();
|
$space->save();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -101,7 +103,7 @@ class LiblinphoneTesterAccoutSeeder extends Seeder
|
||||||
}
|
}
|
||||||
|
|
||||||
private function generateAccountArray(
|
private function generateAccountArray(
|
||||||
int $id, string $username, string $domain, string $phone = null,
|
int $id, string $username, string $domain, ?string $phone = null,
|
||||||
bool $activated = true
|
bool $activated = true
|
||||||
): array {
|
): array {
|
||||||
return [
|
return [
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue