<?php
declare(strict_types=1);
namespace SuppliersOrdersBundleMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20240805085720 extends AbstractMigration
{
public function up(Schema $schema): void
{
$this->addSql(
'ALTER TABLE suppliers_orders_bundle__supplier_order ADD percentage_discount NUMERIC(20, 6) DEFAULT NULL'
);
$this->addSql(
'ALTER TABLE suppliers_orders_bundle__supplier_order_line ADD discount NUMERIC(20, 6) DEFAULT NULL'
);
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE suppliers_orders_bundle__supplier_order DROP percentage_discount');
$this->addSql('ALTER TABLE suppliers_orders_bundle__supplier_order_line DROP discount');
}
}