<?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 Version20231002160838 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add soft delete fields';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE `order` ADD deleted_at DATETIME DEFAULT NULL');
$this->addSql('ALTER TABLE `transaction` ADD deleted_at DATETIME DEFAULT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE `order` DROP deleted_at');
$this->addSql('ALTER TABLE `transaction` DROP deleted_at');
}
}