<?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 Version20240220185457 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 cc_articulos_bloqueados DROP FOREIGN KEY FK_CEB30132279A5D5E');
$this->addSql('DROP INDEX IDX_CEB30132279A5D5E ON cc_articulos_bloqueados');
$this->addSql('ALTER TABLE cc_articulos_bloqueados ADD sucursal VARCHAR(20) DEFAULT NULL, DROP sucursal_id');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE cc_articulos_bloqueados ADD sucursal_id INT DEFAULT NULL, DROP sucursal');
$this->addSql('ALTER TABLE cc_articulos_bloqueados ADD CONSTRAINT FK_CEB30132279A5D5E FOREIGN KEY (sucursal_id) REFERENCES sucursal (id)');
$this->addSql('CREATE INDEX IDX_CEB30132279A5D5E ON cc_articulos_bloqueados (sucursal_id)');
}
}