<?php declare (strict_types = 1);

namespace App\Data\Migrations;

use App\Data\Models\{%SINGULAR_CC%} as Model;
use Doctrine\DBAL\DBALException;
use Limoncello\Contracts\Data\MigrationInterface;
use Limoncello\Data\Migrations\MigrationTrait;

/**
 * @package App
 */
final class {%PLURAL_CC%}Migration implements MigrationInterface
{
    use MigrationTrait;

    /**
     * @inheritdoc
     *
     * @throws DBALException
     */
    public function migrate(): void
    {
//        $isCascadeDelete = true;

        $this->createTable(Model::class, [
            $this->primaryInt(Model::FIELD_ID),
//            $this->relationship(Model::REL_OTHER, $isCascadeDelete),
            $this->string(Model::FIELD_TITLE),
            $this->text(Model::FIELD_TEXT),
            $this->timestamps(),
        ]);
    }

    /**
     * @inheritdoc
     */
    public function rollback(): void
    {
        $this->dropTableIfExists(Model::class);
    }
}

<?php declare (strict_types = 1);

namespace App\Data\Migrations;

use App\Data\Models\{%SINGULAR_CC%} as Model;
use Doctrine\DBAL\DBALException;
use Limoncello\Contracts\Data\MigrationInterface;
use Limoncello\Data\Migrations\MigrationTrait;
//use Limoncello\Data\Migrations\RelationshipRestrictions;

/**
 * @package App
 */
final class {%PLURAL_CC%}Migration implements MigrationInterface
{
    use MigrationTrait;

    /**
     * @inheritdoc
     *
     * @throws DBALException
     */
    public function migrate(): void
    {
//        $onDeleteRestriction = RelationshipRestrictions::CASCADE;

        $this->createTable(Model::class, [
            $this->primaryInt(Model::FIELD_ID),
//            $this->relationship(Model::REL_OTHER, $onDeleteRestriction),
            $this->string(Model::FIELD_TITLE),
            $this->text(Model::FIELD_TEXT),
            $this->timestamps(),
        ]);
    }

    /**
     * @inheritdoc
     */
    public function rollback(): void
    {
        $this->dropTableIfExists(Model::class);
    }
}

Refactor relationship restrictions. Add stricter typing.
Refactor relationship restrictions. Add stricter typing.
