<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20220830202011 extends AbstractMigration
{
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE invoice DROP sum, DROP shipping_calc, DROP fee_calc, DROP total, DROP debit');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE invoice ADD sum DOUBLE PRECISION NOT NULL, ADD shipping_calc DOUBLE PRECISION NOT NULL, ADD fee_calc DOUBLE PRECISION NOT NULL, ADD total DOUBLE PRECISION NOT NULL, ADD debit DOUBLE PRECISION NOT NULL');
}
}