<?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 Version20231113150009 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$this->addSql('UPDATE shop_settings
SET auto_accept_orders = 1
WHERE shop_id IN (
SELECT s.id
FROM shop s
JOIN printer p ON p.shop_id = s.id
JOIN source src ON s.source_id = src.id
WHERE src.code = "foxorders-front" AND p.mac IS NOT NULL AND p.mac != ""
)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
}
}