<?php
declare(strict_types=1);
namespace Boldr\Cms\CmsBundle\Migrations;
use Doctrine\DBAL\Schema\Schema;
use Boldr\Cms\CmsBundle\BoldrCmsMigration;
final class Version1__15_0 extends BoldrCmsMigration
{
public function getBundle(): string { return 'boldr/cms-bundle'; }
public function getVersion(): ?string { return '1.15.0'; }
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE cms_upload_folder ADD parent_id INT UNSIGNED DEFAULT NULL');
$this->addSql('ALTER TABLE cms_upload_folder ADD CONSTRAINT FK_D1D2E2A0727ACA70 FOREIGN KEY (parent_id) REFERENCES cms_upload_folder (id)');
$this->addSql('CREATE INDEX IDX_D1D2E2A0727ACA70 ON cms_upload_folder (parent_id)');
}
}