<?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 Version20211201101758 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 accent ADD delivery_name VARCHAR(255) DEFAULT NULL');
$this->addSql('UPDATE accent SET delivery_name = "Bahrain" WHERE id = "ar_barhain_arabic"');
$this->addSql('UPDATE accent SET delivery_name = "Oman" WHERE id = "ar_oman_arabic"');
$this->addSql('UPDATE accent SET delivery_name = "Saudi Arabia" WHERE id = "ar_saudiarabia_arabic"');
$this->addSql('UPDATE accent SET delivery_name = "UAE (Dubai)" WHERE id = "ar_unitedarabemirates_arabic"');
$this->addSql('ALTER TABLE project ADD delivery_prefix VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE record ADD delivered_at DATETIME DEFAULT NULL');
$this->addSql('ALTER TABLE scenario ADD delivered_at DATETIME DEFAULT NULL');
$this->addSql('ALTER TABLE scenario_project ADD delivery_prefix VARCHAR(255) DEFAULT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE accent DROP delivery_name');
$this->addSql('ALTER TABLE project DROP delivery_prefix');
$this->addSql('ALTER TABLE record DROP delivered_at');
$this->addSql('ALTER TABLE scenario DROP delivered_at');
$this->addSql('ALTER TABLE scenario_project DROP delivery_prefix');
}
}