<?php
declare(strict_types=1);
namespace SalesBundleMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20240808094047 extends AbstractMigration
{
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE sales_bundle__credit_note ADD edit_prices_with_tax TINYINT(1) DEFAULT 0 NOT NULL');
$this->addSql('ALTER TABLE sales_bundle__credit_note_line ADD unit_price_with_tax NUMERIC(20, 6) DEFAULT NULL');
$this->addSql('ALTER TABLE sales_bundle__delivery_note 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 sales_bundle__delivery_note_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');
$this->addSql('ALTER TABLE sales_bundle__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 sales_bundle__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');
$this->addSql('ALTER TABLE sales_bundle__order 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 sales_bundle__order_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');
$this->addSql('ALTER TABLE sales_bundle__quotation 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 sales_bundle__quotation_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 down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE sales_bundle__credit_note DROP edit_prices_with_tax');
$this->addSql('ALTER TABLE sales_bundle__credit_note_line DROP unit_price_with_tax');
$this->addSql('ALTER TABLE sales_bundle__delivery_note DROP total_discount, DROP total_amount_no_discount, DROP edit_prices_with_tax');
$this->addSql('ALTER TABLE sales_bundle__delivery_note_line DROP unit_price_with_tax, DROP total_discount, DROP total_amount_no_discount');
$this->addSql('ALTER TABLE sales_bundle__invoice DROP total_discount, DROP total_amount_no_discount, DROP edit_prices_with_tax');
$this->addSql('ALTER TABLE sales_bundle__invoice_line DROP unit_price_with_tax, DROP total_discount, DROP total_amount_no_discount');
$this->addSql('ALTER TABLE sales_bundle__order DROP total_discount, DROP total_amount_no_discount, DROP edit_prices_with_tax');
$this->addSql('ALTER TABLE sales_bundle__order_line DROP unit_price_with_tax, DROP total_discount, DROP total_amount_no_discount');
$this->addSql('ALTER TABLE sales_bundle__quotation DROP total_discount, DROP total_amount_no_discount, DROP edit_prices_with_tax');
$this->addSql('ALTER TABLE sales_bundle__quotation_line DROP unit_price_with_tax, DROP total_discount, DROP total_amount_no_discount');
}
}