ogcore/migrations/Version20260424130000.php

29 lines
797 B
PHP

<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20260424130000 extends AbstractMigration
{
public function getDescription(): string
{
return 'Move remotePc flag from image_repository to image_image_repository';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE image_image_repository ADD remote_pc TINYINT(1) DEFAULT 0');
$this->addSql('ALTER TABLE image_repository DROP remote_pc');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE image_repository ADD remote_pc TINYINT(1) DEFAULT 0');
$this->addSql('ALTER TABLE image_image_repository DROP remote_pc');
}
}