Add migration

This commit is contained in:
Daniel Supernault 2023-12-21 03:34:31 -07:00
parent 6c39df7fb3
commit e98df1196f
No known key found for this signature in database
GPG key ID: 23740873EE6F76A1

View file

@ -0,0 +1,25 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use App\StatusHashtag;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
StatusHashtag::doesntHave('status')->lazyById(200)->each->deleteQuietly();
}
/**
* Reverse the migrations.
*/
public function down(): void
{
//
}
};