<?php

use Illuminate\Database\Migrations\Migration;
use Inside\Notify\Models\NotificationType;

class RemoveDuplicateNotificationTypes extends Migration
{
    /**
     *
     */
    public function up(): void
    {
        $notificationTypes = NotificationType::query()->where('role', 1)->where('action', 'commentCommented')->get();

        foreach ($notificationTypes as $notificationType) {
            $notificationType->delete();
        }
    }

    public function down(): void
    {
    }
}
