<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20241128222750 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add field Carrier.{deliveryInstructions} and Order.{deliveryInstructions}';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE carrier ADD delivery_instructions LONGTEXT DEFAULT NULL');
$this->addSql('ALTER TABLE `order` ADD delivery_instructions LONGTEXT DEFAULT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE carrier DROP delivery_instructions');
$this->addSql('ALTER TABLE `order` DROP delivery_instructions');
}
}