<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20260611205835 extends AbstractMigration
{
public function getDescription(): string
{
return 'Creating field shopInfo to store shop data for orders';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE `order` ADD shop_info JSON DEFAULT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE `order` DROP shop_info');
}
}