ogcore/migrations/Version20260415120000.php

27 lines
637 B
PHP

<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20260415120000 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add size (compressed size) field to image_image_repository table';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE image_image_repository ADD size VARCHAR(255) DEFAULT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE image_image_repository DROP COLUMN size');
}
}