<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20220404211252 extends AbstractMigration
{
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE invoice CHANGE sum sum DOUBLE PRECISION NOT NULL, CHANGE shipping_calc shipping_calc DOUBLE PRECISION NOT NULL, CHANGE shipping_user shipping_user DOUBLE PRECISION DEFAULT NULL, CHANGE fee_user fee_user DOUBLE PRECISION DEFAULT NULL');
$this->addSql('ALTER TABLE lot CHANGE starting_price starting_price DOUBLE PRECISION DEFAULT NULL, CHANGE reserve reserve DOUBLE PRECISION DEFAULT NULL, CHANGE sold sold DOUBLE PRECISION DEFAULT NULL, CHANGE est_low est_low DOUBLE PRECISION DEFAULT NULL, CHANGE est_high est_high DOUBLE PRECISION DEFAULT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE invoice CHANGE sum sum INT NOT NULL, CHANGE shipping_calc shipping_calc INT NOT NULL, CHANGE shipping_user shipping_user INT DEFAULT NULL, CHANGE fee_user fee_user INT DEFAULT NULL');
$this->addSql('ALTER TABLE lot CHANGE starting_price starting_price INT DEFAULT NULL, CHANGE reserve reserve INT DEFAULT NULL, CHANGE sold sold INT DEFAULT NULL, CHANGE est_low est_low INT DEFAULT NULL, CHANGE est_high est_high INT DEFAULT NULL');
}
}