<?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 Version20210213181638 extends AbstractMigration
{
public function getDescription() : string
{
return '';
}
public function up(Schema $schema) : void
{
$this->addSql('UPDATE frontend_message SET updated_by_id=1 WHERE updated_by_id IS NULL');
$this->addSql('UPDATE frontend_message SET created_by_id=updated_by_id WHERE created_by_id IS NULL AND updated_by_id IS NOT NULL');
$this->addSql('UPDATE order_activity SET updated_by_id=created_by_id WHERE updated_by_id IS NULL');
}
public function down(Schema $schema) : void
{
$this->addSql('UPDATE order_item SET order_item.created_by_id=NULL, order_item.updated_by_id=NULL');
}
public function isTransactional(): bool
{
return false;
}
}