<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20220304211222 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE orders ADD shipping_cost NUMERIC(10, 2) NOT NULL, CHANGE total_price total_price NUMERIC(10, 2) NOT NULL');
$this->addSql('ALTER TABLE product ADD shipping_cost NUMERIC(10, 2) DEFAULT NULL, ADD min_free_shipping_value INT DEFAULT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE orders DROP shipping_cost, CHANGE total_price total_price NUMERIC(10, 0) NOT NULL');
$this->addSql('ALTER TABLE product DROP shipping_cost, DROP min_free_shipping_value');
}
}