<?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 Version20251128100143 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('CREATE TABLE user_activity_log (id INT AUTO_INCREMENT NOT NULL, userid VARCHAR(100) NOT NULL, user_email VARCHAR(180) NOT NULL, user_name VARCHAR(128) NOT NULL, user_lastname VARCHAR(128) NOT NULL, created_at DATETIME NOT NULL, entity_id INT DEFAULT NULL, entity_type VARCHAR(128) DEFAULT NULL, activity_type VARCHAR(128) NOT NULL, activity_detail LONGTEXT DEFAULT NULL, instance_id INT DEFAULT NULL, ente VARCHAR(190) DEFAULT NULL, cittadino_id INT DEFAULT NULL, cittadino_nome VARCHAR(255) DEFAULT NULL, cittadino_cognome VARCHAR(255) DEFAULT NULL, cittadino_email VARCHAR(255) DEFAULT NULL, cittadino_codicefiscale VARCHAR(16) DEFAULT NULL, cittadino_documento VARCHAR(50) DEFAULT NULL, cittadino_matricola VARCHAR(10) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE user_activity_log');
}
}