<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Add is_repeatable column to std_content_types_components table
* to support repeatable fields in content types (like gallery blocks)
*/
final class Version20260107063439 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add is_repeatable column to std_content_types_components for repeatable content type fields';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE std_content_types_components ADD is_repeatable TINYINT(1) DEFAULT 0 NOT NULL COMMENT "Flag that indicates if the component is repeatable"');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE std_content_types_components DROP is_repeatable');
}
}