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