<?php

use Illuminate\Database\Migrations\Migration;
use Inside\Content\Models\Contents\Blocks;
use Inside\Host\Bridge\BridgeContent;

class DeleteBlockContents extends Migration
{
    public function up(): void
    {
        $bridge = new BridgeContent();

        Blocks::each(fn ($block) => $bridge->contentDelete('blocks', $block->uuid));
    }
}
