<?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 Version20231129135336 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add field Order.{send}';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE `order` ADD send TINYINT(1) DEFAULT 1 NOT NULL AFTER valid');
$this->addSql('UPDATE `order` SET `send` = 1 WHERE 1');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE `order` DROP send');
}
}