<?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 Version20220504083820 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 product ADD new TINYINT(1) DEFAULT NULL, ADD restricted TINYINT(1) DEFAULT NULL');
$this->addSql('ALTER TABLE shop_settings ADD time_slot_blocking_type ENUM(\'product\',\'order\'), ADD time_slot_max_product INT DEFAULT NULL, ADD time_slot_max_order INT DEFAULT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE product DROP new, DROP restricted');
$this->addSql('ALTER TABLE shop_settings DROP time_slot_blocking_type, DROP time_slot_max_product, DROP time_slot_max_order');
}
}