<?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 Version20220228102419 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 invoice_detail ADD date_expe DATE DEFAULT NULL, ADD id_order INT DEFAULT NULL, ADD calculated_weight DOUBLE PRECISION DEFAULT NULL, ADD price DOUBLE PRECISION DEFAULT NULL, ADD options_price DOUBLE PRECISION DEFAULT NULL, ADD calculated_price DOUBLE PRECISION DEFAULT NULL, ADD calculated_options_price DOUBLE PRECISION DEFAULT NULL, ADD options_list VARCHAR(255) DEFAULT NULL, ADD calculated_options_list VARCHAR(255) DEFAULT NULL, ADD tva DOUBLE PRECISION DEFAULT NULL, ADD ttc DOUBLE PRECISION DEFAULT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE invoice_detail DROP date_expe, DROP id_order, DROP calculated_weight, DROP price, DROP options_price, DROP calculated_price, DROP calculated_options_price, DROP options_list, DROP calculated_options_list, DROP tva, DROP ttc');
}
}