fix: migrate db schema for smtp + discord

This commit is contained in:
Andras Bacsai committed 2023-07-27 21:26:15 +02:00
1 parent d0a85713d2
commit 9c393ff6bc
21 files changed
+382 -238

No files matched your search

+1 -15
View File
@@ -34,20 +34,6 @@ class User extends Authenticatable implements SendsEmail
$team = [
'name' => $user->name . "'s Team",
'personal_team' => true,
'smtp' => [
'enabled' => false,
],
'smtp_notifications' => [
'test' => true,
'deployments' => false,
],
'discord' => [
'enabled' => false,
],
'discord_notifications' => [
'test' => true,
'deployments' => false,
],
];
if ($user->id === 0) {
$team['id'] = 0;
@@ -124,4 +110,4 @@ class User extends Authenticatable implements SendsEmail
$data = Application::where('team_id', $team_id)->get();
return $data;
}
}
}