<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Migration to add image_file column to searchtemp table
*/
final class Version20251009130000 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add image_file column to searchtemp table for product images';
}
public function up(Schema $schema): void
{
$this->addSql("
ALTER TABLE searchtemp
ADD COLUMN image_file VARCHAR(255) DEFAULT NULL AFTER description
");
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE searchtemp DROP COLUMN image_file');
}
}