<?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 Version20220331073913 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 event ADD retail_price DOUBLE PRECISION DEFAULT NULL AFTER `end`, ADD purchase_price DOUBLE PRECISION DEFAULT NULL AFTER `end`, ADD tva DOUBLE PRECISION DEFAULT NULL AFTER `end`, ADD updated_at DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL AFTER `created_at`');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE event DROP retail_price, DROP purchase_price, DROP tva, DROP updated_at');
}
}