<?php declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20241114142754 extends AbstractMigration
{
public function getDescription(): string
{
return "Related Ref: https://synergyeffect.teamwork.com/app/tasks/40998692"
. PHP_EOL
. 'Moving generative shipping & insurance data to persistanct storage.'
. PHP_EOL
. 'The new requirement is to have ability to change fees but dont affect unpayed, already signed orders.';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE invoice ADD shipping_sum DOUBLE PRECISION NOT NULL, ADD insurance_sum DOUBLE PRECISION NOT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE invoice DROP shipping_sum, DROP insurance_sum');
}
}