<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20241125114516 extends AbstractMigration
{
public function getDescription(): string
{
return 'Correct product_category table remove product 7654 from category 1117';
}
public function up(Schema $schema): void
{
if ('prod' === $_SERVER['APP_SERVER']) {
$this->addSql('DELETE FROM product_category WHERE id IN (2412, 10932, 10934, 10935, 12781, 12784)');
}
}
}