<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20250108133156 extends AbstractMigration
{
public function getDescription(): string
{
return 'Update orders: remove the "sending" checkoutState and set orders with this state to "pending".';
}
public function up(Schema $schema): void
{
$this->addSql("UPDATE `order` SET checkout_state = 'pending' WHERE checkout_state = 'sending'");
}
public function down(Schema $schema): void
{
$this->addSql("UPDATE `order` SET checkout_state = 'sending' WHERE checkout_state = 'pending'");
}
}