<?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 Version20211213180430 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 store ADD network_id INT DEFAULT NULL, ADD slug VARCHAR(100) NOT NULL, ADD icon VARCHAR(255) DEFAULT NULL, ADD all_direct_link TINYINT(1) DEFAULT NULL, ADD coupon_text VARCHAR(255) DEFAULT NULL, ADD recommend VARCHAR(255) DEFAULT NULL, ADD did_you_know VARCHAR(255) DEFAULT NULL, ADD website VARCHAR(100) DEFAULT NULL, ADD phone VARCHAR(100) DEFAULT NULL, ADD email VARCHAR(100) DEFAULT NULL, ADD facebook VARCHAR(100) DEFAULT NULL, ADD twitter VARCHAR(100) DEFAULT NULL, ADD youtube VARCHAR(200) DEFAULT NULL, ADD instagram VARCHAR(200) DEFAULT NULL, ADD created_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', ADD updated_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\'');
$this->addSql('ALTER TABLE store ADD CONSTRAINT FK_FF57587734128B91 FOREIGN KEY (network_id) REFERENCES network (id)');
$this->addSql('CREATE INDEX IDX_FF57587734128B91 ON store (network_id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE store DROP FOREIGN KEY FK_FF57587734128B91');
$this->addSql('DROP INDEX IDX_FF57587734128B91 ON store');
$this->addSql('ALTER TABLE store DROP network_id, DROP slug, DROP icon, DROP all_direct_link, DROP coupon_text, DROP recommend, DROP did_you_know, DROP website, DROP phone, DROP email, DROP facebook, DROP twitter, DROP youtube, DROP instagram, DROP created_at, DROP updated_at');
}
}