<?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 Version20230920075630 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 discount CHANGE discount discount NUMERIC(9, 3) NOT NULL');
$this->addSql('ALTER TABLE `order` CHANGE amount amount NUMERIC(9, 3) NOT NULL, CHANGE discount_amount discount_amount NUMERIC(9, 3) NOT NULL, CHANGE amount_no_discount amount_no_discount NUMERIC(9, 3) NOT NULL');
$this->addSql('ALTER TABLE question_group CHANGE price_for_old_customer price_for_old_customer NUMERIC(9, 3) DEFAULT NULL, CHANGE price_for_new_customer price_for_new_customer NUMERIC(9, 3) DEFAULT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE discount CHANGE discount discount NUMERIC(6, 3) NOT NULL');
$this->addSql('ALTER TABLE `order` CHANGE amount amount NUMERIC(6, 3) NOT NULL, CHANGE amount_no_discount amount_no_discount NUMERIC(6, 3) NOT NULL, CHANGE discount_amount discount_amount NUMERIC(6, 3) NOT NULL');
$this->addSql('ALTER TABLE question_group CHANGE price_for_old_customer price_for_old_customer NUMERIC(6, 3) DEFAULT NULL, CHANGE price_for_new_customer price_for_new_customer NUMERIC(6, 3) DEFAULT NULL');
}
}