Skip to content

Commit

Permalink
Add migration to purge and regenerate lifecycle events
Browse files Browse the repository at this point in the history
  • Loading branch information
tarrow committed Aug 1, 2024
1 parent df869d5 commit 93e9f05
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

use App\Jobs\UpdateWikiSiteStatsJob;
use App\WikiLifecycleEvents;
use Illuminate\Database\Migrations\Migration;

return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
WikiLifecycleEvents::all()->map->delete();
(new UpdateWikiSiteStatsJob())->handle();
}

/**
* Reverse the migrations.
*/
public function down(): void
{
//
}
};

0 comments on commit 93e9f05

Please sign in to comment.