<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Add archived and archived_at columns to asset table
*/
final class Version20250908120000 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add archived and archived_at columns to asset table for asset archiving functionality';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE asset ADD archived TINYINT(1) NOT NULL');
$this->addSql('ALTER TABLE asset ADD archived_at DATETIME DEFAULT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE asset DROP archived');
$this->addSql('ALTER TABLE asset DROP archived_at');
}
}