<?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 Version20220120235949 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('DROP INDEX idx_c667e5117e8e8aa2');
$this->addSql('DROP INDEX idx_c667e511a76ed395');
$this->addSql('ALTER TABLE integration__connection_shoper ADD app_id VARCHAR(150) NOT NULL');
$this->addSql('ALTER TABLE integration__connection_shoper ADD app_secret VARCHAR(150) NOT NULL');
$this->addSql('ALTER TABLE integration__connection_shoper ADD app_store_secret VARCHAR(150) NOT NULL');
$this->addSql('CREATE UNIQUE INDEX UNIQ_C667E511A76ED395 ON integration__connection_shoper (user_id)');
$this->addSql('CREATE UNIQUE INDEX UNIQ_C667E5117E8E8AA2 ON integration__connection_shoper (pim_id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE SCHEMA public');
$this->addSql('DROP INDEX UNIQ_C667E511A76ED395');
$this->addSql('DROP INDEX UNIQ_C667E5117E8E8AA2');
$this->addSql('ALTER TABLE integration__connection_shoper DROP app_id');
$this->addSql('ALTER TABLE integration__connection_shoper DROP app_secret');
$this->addSql('ALTER TABLE integration__connection_shoper DROP app_store_secret');
$this->addSql('CREATE INDEX idx_c667e5117e8e8aa2 ON integration__connection_shoper (pim_id)');
$this->addSql('CREATE INDEX idx_c667e511a76ed395 ON integration__connection_shoper (user_id)');
}
}