<?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 Version20230410203401 extends AbstractMigration
{
public function getDescription(): string
{
return 'Create table to save object data';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('alter table object drop column current_bid');
$this->addSql('alter table object drop column next_bid');
$this->addSql('alter table object drop column total_bids');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('alter table object add current_bid int not null;');
$this->addSql('alter table object add next_bid int not null;');
$this->addSql('alter table object add total_bids int not null;');
}
}