<?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 Version20220222174758 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 typologie ADD is_translated TINYINT(1) NOT NULL');
$this->addSql('ALTER TABLE service ADD is_translated TINYINT(1) DEFAULT FALSE NOT NULL');
$this->addSql('ALTER TABLE package ADD is_translated TINYINT(1) DEFAULT FALSE 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 typologie DROP is_translated');
$this->addSql('ALTER TABLE service DROP is_translated');
$this->addSql('ALTER TABLE package DROP is_translated');
}
}