<?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 Version20250422121038 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 client DROP old_id, DROP old_user_id');
$this->addSql('ALTER TABLE event DROP old_id, DROP old_parent_id');
$this->addSql('ALTER TABLE log ADD device VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE user DROP old_id');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE log DROP device');
$this->addSql('ALTER TABLE client ADD old_id INT DEFAULT NULL, ADD old_user_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE event ADD old_id INT DEFAULT NULL, ADD old_parent_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE `user` ADD old_id INT DEFAULT NULL');
}
}