<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20251007092145 extends AbstractMigration
{
public function getDescription(): string
{
return 'Converting franchise YUJO RAMEN to multi site';
}
public function up(Schema $schema): void
{
if ('prod' === $_SERVER['APP_SERVER']) {
$this->addSql('UPDATE franchise SET multiple = 1 WHERE id = 121');
}
}
public function down(Schema $schema): void
{
if ('prod' === $_SERVER['APP_SERVER']) {
$this->addSql('UPDATE franchise SET multiple = 0 WHERE id = 121');
}
}
}