<?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 Version20220902095453 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 `order` ADD table_number INT DEFAULT NULL, CHANGE state state VARCHAR(255) NOT NULL, CHANGE checkout_state checkout_state VARCHAR(255) NOT NULL, CHANGE payment_state payment_state VARCHAR(255) NOT NULL');
$this->addSql('ALTER TABLE shop_settings CHANGE time_slot_blocking_type time_slot_blocking_type VARCHAR(40) DEFAULT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE `order` DROP table_number, CHANGE state state VARCHAR(255) DEFAULT NULL, CHANGE checkout_state checkout_state VARCHAR(255) DEFAULT NULL, CHANGE payment_state payment_state VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE shop_settings CHANGE time_slot_blocking_type time_slot_blocking_type VARCHAR(255) DEFAULT NULL');
}
}