migrations/Version20230619131555.php line 1
<?phpdeclare(strict_types=1);namespace DoctrineMigrations;use Doctrine\DBAL\Schema\Schema;use Doctrine\Migrations\AbstractMigration;/*** Auto-generated Migration: Please modify to your needs!*/final class Version20230619131555 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 ticket ADD resolved_by_id INT DEFAULT NULL, ADD resolved_at DATETIME DEFAULT NULL COMMENT \'(DC2Type:datetime_immutable)\', ADD comment_resolved VARCHAR(255) DEFAULT NULL');$this->addSql('ALTER TABLE ticket ADD CONSTRAINT FK_97A0ADA36713A32B FOREIGN KEY (resolved_by_id) REFERENCES user (id)');$this->addSql('CREATE INDEX IDX_97A0ADA36713A32B ON ticket (resolved_by_id)');}public function down(Schema $schema): void{// this down() migration is auto-generated, please modify it to your needs$this->addSql('ALTER TABLE ticket DROP FOREIGN KEY FK_97A0ADA36713A32B');$this->addSql('DROP INDEX IDX_97A0ADA36713A32B ON ticket');$this->addSql('ALTER TABLE ticket DROP resolved_by_id, DROP resolved_at, DROP comment_resolved');}}