<?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 Version20211110115824 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 purchase ADD total_amount_original NUMERIC(10, 2) DEFAULT NULL, ADD original_currency VARCHAR(3) DEFAULT NULL');
$this->addSql('ALTER TABLE purchase_product ADD original_price NUMERIC(10, 2) DEFAULT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE purchase DROP total_amount_original, DROP original_currency');
$this->addSql('ALTER TABLE purchase_product DROP original_price');
}
}