<?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 Version20230616162125 extends AbstractMigration
{
public function getDescription(): string
{
return 'Rename field order_detail_id and remove field pw_order_return_id, order_return_id';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE return_order ADD order_detail_id INT NOT NULL, DROP pw_order_return_id, DROP type, DROP order_return_id');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE return_order ADD type VARCHAR(255) NOT NULL, ADD order_return_id INT NOT NULL, CHANGE order_detail_id pw_order_return_id INT NOT NULL');
}
}