Files
ephub/migrations/Version20260917120000.php
T

29 lines
790 B
PHP

<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20260917120000 extends AbstractMigration
{
public function getDescription(): string
{
return 'Drops the SVG element ids now that the floor plan is plain HTML';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE resource DROP svg_element_id');
$this->addSql('ALTER TABLE resource_group DROP svg_element_id');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE resource ADD svg_element_id VARCHAR(50) DEFAULT NULL');
$this->addSql('ALTER TABLE resource_group ADD svg_element_id VARCHAR(50) DEFAULT NULL');
}
}