<?php

use Illuminate\Database\Migrations\Migration;
use Inside\Host\Bridge\BridgeContentType;

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

        $bridge->updateContentTypeOptions('spaces_pages', [
            'categorizable' => true,
            'permissible' => true
        ]);
        $bridge->updateContentTypeOptions('pages_categories', [
            'categorizable' => true,
            'permissible' => true
        ]);
    }
}
