<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20250124114533 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE ransomware ADD name VARCHAR(255) NOT NULL, ADD host VARCHAR(255) NOT NULL, ADD actors LONGTEXT NOT NULL COMMENT \'(DC2Type:json)\', ADD associations LONGTEXT NOT NULL COMMENT \'(DC2Type:json)\', ADD download_locations LONGTEXT NOT NULL COMMENT \'(DC2Type:json)\', ADD filepath LONGTEXT NOT NULL, ADD filename VARCHAR(255) NOT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE ransomware DROP name, DROP host, DROP actors, DROP associations, DROP download_locations, DROP filepath, DROP filename');
}
}