<?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 Version20220810154347 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->addSql('ALTER TABLE raport_ads_new ADD date_from DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', ADD date_to DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', ADD monthly TINYINT(1) NOT NULL, DROP dateFrom, DROP dateTo');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE raport_ads_new ADD dateFrom DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', ADD dateTo DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', DROP date_from, DROP date_to, DROP monthly');
}
}