<?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 Version20260413211434 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 document_society RENAME INDEX idx_a90bc72ee6389d24 TO idx_docsociety_society');
$this->addSql('ALTER TABLE logo CHANGE logo_size logo_size INT DEFAULT NULL');
$this->addSql('ALTER TABLE president CHANGE is_represante_society is_represante_society TINYINT(1) DEFAULT true');
$this->addSql('CREATE INDEX idx_signatures_status ON signatures (status)');
$this->addSql('CREATE INDEX idx_society_siren ON society (siren)');
$this->addSql('CREATE INDEX idx_society_siret ON society (siret)');
$this->addSql('CREATE INDEX idx_society_name ON society (name)');
$this->addSql('CREATE INDEX idx_society_postal ON society (postal)');
$this->addSql('CREATE INDEX idx_society_status ON society (status)');
$this->addSql('CREATE INDEX idx_society_created ON society (created)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE document_society RENAME INDEX idx_docsociety_society TO IDX_A90BC72EE6389D24');
$this->addSql('ALTER TABLE logo CHANGE logo_size logo_size INT DEFAULT 40');
$this->addSql('ALTER TABLE president CHANGE is_represante_society is_represante_society TINYINT(1) DEFAULT 1');
$this->addSql('DROP INDEX idx_signatures_status ON signatures');
$this->addSql('DROP INDEX idx_society_siren ON society');
$this->addSql('DROP INDEX idx_society_siret ON society');
$this->addSql('DROP INDEX idx_society_name ON society');
$this->addSql('DROP INDEX idx_society_postal ON society');
$this->addSql('DROP INDEX idx_society_status ON society');
$this->addSql('DROP INDEX idx_society_created ON society');
}
}