<?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 Version20221010164220 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 api_itinerary_id VARCHAR(255) DEFAULT NULL, ADD api_customer_id VARCHAR(255) DEFAULT NULL, ADD api_email VARCHAR(255) DEFAULT NULL, CHANGE omni_notes api_notes LONGTEXT DEFAULT NULL');
$this->addSql('CREATE UNIQUE INDEX UNIQ_F5299398551F0F81 ON `order` (order_number)');
$this->addSql('ALTER TABLE order_group ADD tee_date DATETIME NOT NULL, ADD api_course_id INT DEFAULT NULL, DROP api_email, DROP api_customer_id');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP INDEX UNIQ_F5299398551F0F81 ON `order`');
$this->addSql('ALTER TABLE `order` DROP api_itinerary_id, DROP api_customer_id, DROP api_email, CHANGE api_notes omni_notes LONGTEXT DEFAULT NULL');
$this->addSql('ALTER TABLE order_group ADD api_email VARCHAR(255) DEFAULT NULL, ADD api_customer_id VARCHAR(255) DEFAULT NULL, DROP tee_date, DROP api_course_id');
}
}