<?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 Version20231110113433 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 ordering_hours oh, shop_mode sm SET oh.deleted = true, oh.deleted_at = IF(sm.deleted = true, sm.deleted_at, sm.updated_at) WHERE sm.id = oh.shop_mode_id AND (sm.deleted = true OR sm.enabled = false)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
}
}