<?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 Version20220718135123 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 info ADD roulette_active TINYINT(1) DEFAULT 0 NOT NULL AFTER shop_target');
$this->addSql('ALTER TABLE info ADD roulette_text VARCHAR(255) DEFAULT NULL AFTER roulette_active');
$this->addSql('ALTER TABLE info ADD roulette_image LONGTEXT NOT NULL COMMENT \'(DC2Type:array)\' AFTER roulette_text');
$this->addSql('ALTER TABLE info ADD roulette_banner_home LONGTEXT NOT NULL COMMENT \'(DC2Type:array)\' AFTER roulette_image');
$this->addSql('UPDATE info SET roulette_image = \'a:0:{}\'');
$this->addSql('UPDATE info SET roulette_banner_home = \'a:0:{}\'');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE info DROP roulette_active, DROP roulette_text, DROP roulette_image, DROP roulette_banner_home');
}
}