<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
/**
* Auto-generated Migration: Please modify to your needs!
*/
class Version20220304180013 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->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('ALTER TABLE infos_discover_link ADD code_traduction VARCHAR(255) DEFAULT NULL, ADD created_at DATETIME NOT NULL, ADD updated_at DATETIME NOT NULL, ADD is_translated TINYINT(1) NOT NULL');
$this->addSql('ALTER TABLE infos_event ADD code_traduction VARCHAR(255) DEFAULT NULL, ADD created_at DATETIME NOT NULL, ADD updated_at DATETIME NOT NULL, ADD is_translated TINYINT(1) NOT NULL');
$this->addSql('ALTER TABLE infos_discover ADD code_traduction VARCHAR(255) DEFAULT NULL, ADD created_at DATETIME NOT NULL, ADD updated_at DATETIME NOT NULL, ADD is_translated TINYINT(1) NOT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('ALTER TABLE infos_discover DROP code_traduction, DROP created_at, DROP updated_at, DROP is_translated');
$this->addSql('ALTER TABLE infos_discover_link DROP code_traduction, DROP created_at, DROP updated_at, DROP is_translated');
$this->addSql('ALTER TABLE infos_event DROP code_traduction, DROP created_at, DROP updated_at, DROP is_translated');
}
}