<?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 Version20260220145009 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 sync_additional_data DROP FOREIGN KEY FK_5ADBED37987212D');
$this->addSql('DROP TABLE sync_additional_data');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE TABLE sync_additional_data (id INT AUTO_INCREMENT NOT NULL, app_id INT NOT NULL, data JSON NOT NULL COMMENT \'(DC2Type:json)\', model VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, route_name VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, route_parameters JSON NOT NULL COMMENT \'(DC2Type:json)\', action VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, status INT NOT NULL, INDEX IDX_5ADBED37987212D (app_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
$this->addSql('ALTER TABLE sync_additional_data ADD CONSTRAINT FK_5ADBED37987212D FOREIGN KEY (app_id) REFERENCES app (id) ON DELETE CASCADE');
}
}