This commit is contained in:
Andras Bacsai
2025-01-17 14:00:20 +01:00
parent 6e9960c010
commit ca2c66943c
2 changed files with 8 additions and 8 deletions

View File

@@ -23,6 +23,12 @@ class ProductionSeeder extends Seeder
{
$user = 'root';
if (isCloud()) {
echo " Running in cloud mode.\n";
} else {
echo " Running in self-hosted mode.\n";
}
if (User::find(0) !== null && Team::find(0) !== null) {
if (DB::table('team_user')->where('user_id', 0)->first() === null) {
DB::table('team_user')->insert([