<?php

declare(strict_types=1);

namespace DoctrineMigrations;

use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;

/**
 * Auto-generated Migration: Please modify to your needs!
 */
final class Version20260609131553 extends AbstractMigration
{
    public function getDescription(): string
    {
        return '';
    }

    public function up(Schema $schema): void
    {
        // this up() migration is auto-generated, please modify it to your needs
        $this->addSql('ALTER TABLE categories CHANGE status status SMALLINT NOT NULL, CHANGE weight weight INT NOT NULL, CHANGE description description LONGTEXT DEFAULT NULL, CHANGE footer_description footer_description LONGTEXT DEFAULT NULL, CHANGE footer_disclaimer footer_disclaimer LONGTEXT DEFAULT NULL');
        $this->addSql('ALTER TABLE categories RENAME INDEX uniq_3af346686b548b0f TO UNIQ_3AF34668D17F50A6');
    }

    public function down(Schema $schema): void
    {
        // this down() migration is auto-generated, please modify it to your needs
        $this->addSql('ALTER TABLE categories CHANGE status status SMALLINT DEFAULT 1 NOT NULL, CHANGE weight weight INT DEFAULT 0 NOT NULL, CHANGE description description TEXT DEFAULT NULL, CHANGE footer_description footer_description TEXT DEFAULT NULL, CHANGE footer_disclaimer footer_disclaimer TEXT DEFAULT NULL');
        $this->addSql('ALTER TABLE categories RENAME INDEX uniq_3af34668d17f50a6 TO UNIQ_3AF346686B548B0F');
    }
}
