<?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 Version20220209095021 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(
"UPDATE subscription_settings
SET subscription_settings.type = 'subscription.setting.type.all'
WHERE event_id IN (SELECT event.id
FROM event
WHERE event.code = 'sample.transition.to_producing')"
);
$this->addSql(
"UPDATE subscription_settings
SET subscription_settings.type = 'subscription.setting.type.all'
WHERE event_id IN (SELECT event.id
FROM event
WHERE event.code = 'sample.transition.to_transit_to_office')"
);
$this->addSql(
"UPDATE subscription_settings
SET subscription_settings.type = 'subscription.setting.type.all'
WHERE event_id IN (SELECT event.id
FROM event
WHERE event.code = 'sample.transition.to_office')"
);
$this->addSql(
"UPDATE subscription_settings
SET subscription_settings.type = 'subscription.setting.type.all'
WHERE event_id IN (SELECT event.id
FROM event
WHERE event.code = 'sample.transition.to_transit_to_customer')"
);
$this->addSql(
"UPDATE subscription_settings
SET subscription_settings.type = 'subscription.setting.type.all'
WHERE event_id IN (SELECT event.id
FROM event
WHERE event.code = 'sample.transition.to_delivered')"
);
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
}
}