diff --git a/database/seeders/DatabaseSeeder.php b/database/seeders/DatabaseSeeder.php index bd5aefa4..b84b59b4 100644 --- a/database/seeders/DatabaseSeeder.php +++ b/database/seeders/DatabaseSeeder.php @@ -55,13 +55,6 @@ public function run(): void 'is_admin' => true, ]); - Schedule::create([ - 'name' => 'Documentation Maintenance', - 'message' => 'We will be conducting maintenance on our documentation servers. Documentation may not be available during this time.', - 'scheduled_at' => now()->subHours(12)->subMinutes(45), - 'completed_at' => now()->subHours(12), - ]); - /** @phpstan-ignore-next-line argument.type */ tap(Schedule::create([ 'name' => 'Documentation Maintenance', @@ -83,6 +76,27 @@ public function run(): void $schedule->updates()->save($update); }); + /** @phpstan-ignore-next-line argument.type */ + tap(Schedule::create([ + 'name' => 'Database Server Upgrade', + 'message' => 'We upgraded our primary database servers to improve performance and reliability.', + 'scheduled_at' => now()->subHours(26), + 'completed_at' => now()->subHours(24), + /** @phpstan-ignore-next-line argument.type */ + ]), function (Schedule $schedule) use ($user) { + $update = new Update([ + 'message' => <<<'EOF' +Maintenance is underway. We are migrating data to the upgraded database servers. +EOF + , + 'user_id' => $user->id, + 'created_at' => $timestamp = $schedule->scheduled_at->addMinutes(30), + 'updated_at' => $timestamp, + ]); + + $schedule->updates()->save($update); + }); + $componentGroup = ComponentGroup::create([ 'name' => 'Cachet', 'collapsed' => ComponentGroupVisibilityEnum::expanded, diff --git a/resources/views/components/incident-timeline.blade.php b/resources/views/components/incident-timeline.blade.php index ca566a70..5ac788e5 100644 --- a/resources/views/components/incident-timeline.blade.php +++ b/resources/views/components/incident-timeline.blade.php @@ -32,8 +32,8 @@