<?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 Version20240705153252 extends AbstractMigration
{
public function getDescription(): string
{
return 'Fix and add company translations';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
if ('prod' === $_SERVER['APP_SERVER']) {
$this->addSql('INSERT IGNORE INTO company_translation (locale_id, company_id, address) SELECT id, 7, null FROM locale');
$this->addSql('INSERT IGNORE INTO company_translation (locale_id, company_id, address) SELECT id, 8, null FROM locale');
$this->addSql('INSERT IGNORE INTO company_translation (locale_id, company_id, address) SELECT id, 3, null FROM locale');
$this->addSql('INSERT IGNORE INTO company_translation (locale_id, company_id, address) SELECT id, 11, null FROM locale');
}
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
}
}