<?php
declare(strict_types=1);
namespace RecurringInvoicesBundleMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20240811171012 extends AbstractMigration
{
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE recurring_invoices_bundle__recurring_invoice ADD total_discount NUMERIC(20, 6) DEFAULT NULL, ADD total_amount_no_discount NUMERIC(20, 6) DEFAULT NULL, ADD edit_prices_with_tax TINYINT(1) DEFAULT 0 NOT NULL');
$this->addSql('ALTER TABLE recurring_invoices_bundle__recurring_invoice_line ADD unit_price_with_tax NUMERIC(20, 6) DEFAULT NULL, ADD total_discount NUMERIC(20, 6) DEFAULT NULL, ADD total_amount_no_discount NUMERIC(20, 6) DEFAULT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE recurring_invoices_bundle__recurring_invoice DROP total_discount, DROP total_amount_no_discount, DROP edit_prices_with_tax');
$this->addSql('ALTER TABLE recurring_invoices_bundle__recurring_invoice_line DROP unit_price_with_tax, DROP total_discount, DROP total_amount_no_discount');
}
}