<?php
declare(strict_types=1);
namespace PPSDKDoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20220517121734_ArticleShopPromotionsBox extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE articles ADD display_shop_promotions_box TINYINT(1) NOT NULL');
$this->addSql('UPDATE articles SET display_shop_promotions_box = 1 WHERE shop_id IS NOT NULL;');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE articles DROP display_shop_promotions_box');
}
}