<?php

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

class FixNotificationsAction extends Migration
{
    public function up(): void
    {
        NotificationType::query()->where('action', 'createOrUpdate')
            ->each(function ($type) {
                $type->action = "create";
                $type->save();
            });
    }

    public function down(): void
    {
    }
}
