<?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 Version20220411163518 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 page ADD created_at DATETIME NOT NULL, ADD updated_at DATETIME NOT NULL, ADD is_translated TINYINT(1) NOT NULL, CHANGE code_traduction code_traduction VARCHAR(255) NULL, CHANGE slug slug LONGTEXT DEFAULT 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 page DROP created_at, DROP updated_at, DROP is_translated, CHANGE slug slug VARCHAR(255) DEFAULT NULL COLLATE utf8_unicode_ci, CHANGE code_traduction code_traduction VARCHAR(255) DEFAULT NULL COLLATE utf8_unicode_ci');
}
}