migrations/Version20260318160119.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 Version20260318160119 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->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'.");$this->addSql('CREATE TABLE app_contact (id INT AUTO_INCREMENT NOT NULL,full_name VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`,email VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`,object VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`,message LONGTEXT CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`,phone VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`,is_read TINYINT(1) NOT NULL,deleted TINYINT(1) NOT NULL,sended_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\',is_answered TINYINT(1) NOT NULL,PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\'');$this->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'.");$this->addSql('CREATE TABLE app_faq (id INT AUTO_INCREMENT NOT NULL,question VARCHAR(500) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`,answer LONGTEXT CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`,deleted TINYINT(1) NOT NULL,valid TINYINT(1) NOT NULL,PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\'');$this->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'.");$this->addSql('CREATE TABLE attendance (id INT AUTO_INCREMENT NOT NULL,event_id_id INT NOT NULL,creator_user_id_id INT DEFAULT NULL,registration_id INT DEFAULT NULL,dni VARCHAR(50) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`,event_ext_code VARCHAR(50) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,method VARCHAR(10) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`,created DATETIME NOT NULL,updated DATETIME NOT NULL,checkin_time DATETIME NOT NULL,qr_code VARCHAR(50) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,INDEX IDX_6DE30D91E5784294 (creator_user_id_id),INDEX IDX_6DE30D913E5F2F7B (event_id_id),INDEX IDX_6DE30D91833D8F43 (registration_id),PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\'');$this->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'.");$this->addSql('CREATE TABLE centers (id INT AUTO_INCREMENT NOT NULL,name VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`,address VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,phone VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,mail VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,created DATETIME NOT NULL,updated DATETIME NOT NULL,PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\'');$this->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'.");$this->addSql('CREATE TABLE event_request (id INT AUTO_INCREMENT NOT NULL,event_id INT NOT NULL,user_id INT NOT NULL,status VARCHAR(20) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,observations LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,requested_at DATETIME NOT NULL,INDEX IDX_BEC02630A76ED395 (user_id),INDEX IDX_BEC0263071F7E88B (event_id),PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\'');$this->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'.");$this->addSql('CREATE TABLE events (id INT AUTO_INCREMENT NOT NULL,center_id INT DEFAULT NULL,manager_user_id INT DEFAULT NULL,modality_id INT DEFAULT NULL,name VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`,ext_code VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`,start_date DATE NOT NULL,end_date DATE NOT NULL,start_time TIME DEFAULT NULL,end_time TIME DEFAULT NULL,max_registrations INT DEFAULT NULL,created DATETIME NOT NULL,updated DATETIME NOT NULL,generation_qr TINYINT(1) DEFAULT NULL,status VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`,hours INT DEFAULT NULL,participants INT DEFAULT NULL,target_groups VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,target_admin VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,total_days INT DEFAULT NULL,shift INT DEFAULT NULL,number_checkings INT DEFAULT NULL,min_compliance DOUBLE PRECISION DEFAULT NULL,image VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,description LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,objetives LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,skills LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,contents LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,prerequisites LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,technical_requirements LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,date_and_time VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,location VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,published TINYINT(1) NOT NULL,inscripciones_inicio DATE DEFAULT NULL,inscripciones_fin DATE DEFAULT NULL,planned_materials LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,internal_observations LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,control_asistencias TINYINT(1) DEFAULT 1 NOT NULL,cuestionario_conocimiento TINYINT(1) DEFAULT 0 NOT NULL,actividades_practicas TINYINT(1) DEFAULT 0 NOT NULL,evaluacion_certificacion_interna LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,INDEX IDX_5387574A5932F377 (center_id),INDEX IDX_5387574A2D6D889B (modality_id),INDEX IDX_5387574A19A3E683 (manager_user_id),PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\'');$this->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'.");$this->addSql('CREATE TABLE events_taxonomy_value (events_id INT NOT NULL,taxonomy_value_id INT NOT NULL,INDEX IDX_EDA70D9354C09375 (taxonomy_value_id),INDEX IDX_EDA70D939D6A1065 (events_id),PRIMARY KEY(events_id, taxonomy_value_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\'');$this->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'.");$this->addSql('CREATE TABLE events_user (events_id INT NOT NULL,user_id INT NOT NULL,INDEX IDX_E1C3D233A76ED395 (user_id),INDEX IDX_E1C3D2339D6A1065 (events_id),PRIMARY KEY(events_id, user_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\'');$this->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'.");$this->addSql('CREATE TABLE home_slider (id INT AUTO_INCREMENT NOT NULL,event_id INT NOT NULL,position INT NOT NULL,enabled TINYINT(1) NOT NULL,INDEX IDX_3FC379BA71F7E88B (event_id),PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\'');$this->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'.");$this->addSql('CREATE TABLE logs (id INT AUTO_INCREMENT NOT NULL,level VARCHAR(50) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`,service VARCHAR(50) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`,message LONGTEXT CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`,created_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\',PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\'');$this->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'.");$this->addSql('CREATE TABLE messenger_messages (id BIGINT AUTO_INCREMENT NOT NULL,body LONGTEXT CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`,headers LONGTEXT CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`,queue_name VARCHAR(190) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`,created_at DATETIME NOT NULL,available_at DATETIME NOT NULL,delivered_at DATETIME DEFAULT NULL,INDEX IDX_75EA56E016BA31DB (delivered_at),INDEX IDX_75EA56E0FB7336F0 (queue_name),INDEX IDX_75EA56E0E3BD61CE (available_at),PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\'');$this->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'.");$this->addSql('CREATE TABLE params (id INT AUTO_INCREMENT NOT NULL,param VARCHAR(50) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`,value VARCHAR(254) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`,section INT NOT NULL,info VARCHAR(1024) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,UNIQUE INDEX UNIQ_8FCE0EF3A4FA7C89 (param),PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\'');$this->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'.");$this->addSql('CREATE TABLE penalty_reason (id INT AUTO_INCREMENT NOT NULL,code VARCHAR(64) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`,label VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`,is_penalizable TINYINT(1) DEFAULT 0 NOT NULL,duration_months INT DEFAULT NULL,is_active TINYINT(1) DEFAULT 1 NOT NULL,sort_order INT DEFAULT 0 NOT NULL,created_at DATETIME NOT NULL,updated_at DATETIME NOT NULL,UNIQUE INDEX UNIQ_PENALTY_REASON_CODE (code),INDEX IDX_PENALTY_REASON_SORT (sort_order),INDEX IDX_PENALTY_REASON_ACTIVE (is_active),PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\'');$this->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'.");$this->addSql('CREATE TABLE registration_qualifications (id INT AUTO_INCREMENT NOT NULL,event_id INT NOT NULL,registration_id INT NOT NULL,calificado_por_id INT DEFAULT NULL,penalty_reason_id INT DEFAULT NULL,applied_user_penalty_id INT DEFAULT NULL,tipo_calificacion VARCHAR(30) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`,calificacion VARCHAR(20) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,observaciones LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,fecha_creacion DATETIME NOT NULL,fecha_actualizacion DATETIME NOT NULL,origen VARCHAR(30) CHARACTER SET utf8mb4 DEFAULT \'MANUAL\' NOT NULL COLLATE `utf8mb4_unicode_ci`,ajustada_manualmente TINYINT(1) DEFAULT 0 NOT NULL,tiene_penalizacion TINYINT(1) DEFAULT 0 NOT NULL,motivo_penalizacion_tipo VARCHAR(64) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,penalizacion_aplicada TINYINT(1) DEFAULT 0 NOT NULL,INDEX IDX_40FBDC1E22A8D3AB (calificado_por_id),INDEX IDX_REGISTRATION_QUALIFICATIONS_APPLIED_PENALTY (applied_user_penalty_id),UNIQUE INDEX uniq_registration_tipo (registration_id, tipo_calificacion),INDEX IDX_40FBDC1E71F7E88B (event_id),INDEX IDX_40FBDC1E833D8F43 (registration_id),INDEX IDX_REGISTRATION_QUALIFICATION_PENALTY_REASON (penalty_reason_id),PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\'');$this->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'.");$this->addSql('CREATE TABLE registrations (id INT AUTO_INCREMENT NOT NULL,user_id_id INT NOT NULL,event_id_id INT NOT NULL,qr_code VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,manual_code VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,created DATETIME NOT NULL,updated DATETIME NOT NULL,last_scanned DATETIME DEFAULT NULL,valid TINYINT(1) NOT NULL,method VARCHAR(10) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,dni VARCHAR(10) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`,active TINYINT(1) DEFAULT 1 NOT NULL,INDEX IDX_53DE51E73E5F2F7B (event_id_id),INDEX IDX_53DE51E79D86650F (user_id_id),PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\'');$this->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'.");$this->addSql('CREATE TABLE reset_password_request (id INT AUTO_INCREMENT NOT NULL,user_id INT DEFAULT NULL,selector VARCHAR(20) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`,hashed_token VARCHAR(100) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`,requested_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\',expires_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\',INDEX IDX_7CE748AA76ED395 (user_id),PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\'');$this->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'.");$this->addSql('CREATE TABLE role (id INT AUTO_INCREMENT NOT NULL,role_name VARCHAR(100) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`,libelle VARCHAR(100) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`,PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\'');$this->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'.");$this->addSql('CREATE TABLE taxonomy (id INT AUTO_INCREMENT NOT NULL,name VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`,description VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\'');$this->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'.");$this->addSql('CREATE TABLE taxonomy_value (id INT AUTO_INCREMENT NOT NULL,taxonomy_id INT NOT NULL,code VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`,label VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,INDEX IDX_48109C999557E6F6 (taxonomy_id),PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\'');$this->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'.");$this->addSql('CREATE TABLE user (id INT AUTO_INCREMENT NOT NULL,management_center_id INT DEFAULT NULL,username VARCHAR(180) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`,roles JSON NOT NULL,nom_complet VARCHAR(50) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`,dni VARCHAR(10) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`,address VARCHAR(250) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,phone VARCHAR(50) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,notes VARCHAR(50) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,email VARCHAR(100) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`,valid TINYINT(1) NOT NULL,deleted TINYINT(1) NOT NULL,password VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`,admin TINYINT(1) NOT NULL,surname VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,custom_filter_year VARCHAR(12) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,activation_token VARCHAR(64) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,active TINYINT(1) NOT NULL,UNIQUE INDEX UNIQ_8D93D649F85E0677 (username),UNIQUE INDEX UNIQ_8D93D649E7927C74 (email),UNIQUE INDEX UNIQ_8D93D6497F8F253B (dni),INDEX IDX_USER_MANAGEMENT_CENTER (management_center_id),PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\'');$this->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'.");$this->addSql('CREATE TABLE user_penalty (id INT AUTO_INCREMENT NOT NULL,user_id INT NOT NULL,penalty_reason_id INT DEFAULT NULL,reason LONGTEXT CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`,start_date DATE NOT NULL,end_date DATE DEFAULT NULL,created_at DATETIME NOT NULL,active TINYINT(1) NOT NULL,reason_type VARCHAR(64) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,INDEX IDX_USER_PENALTY_REASON (penalty_reason_id),INDEX IDX_F7EF91D2A76ED395 (user_id),PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\'');$this->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'.");$this->addSql('CREATE TABLE user_profile (id INT AUTO_INCREMENT NOT NULL,user_id INT NOT NULL,centro_trabajo_id INT DEFAULT NULL,puesto_trabajo_id INT DEFAULT NULL,especialidad_id INT DEFAULT NULL,grupo_id INT DEFAULT NULL,situacion_laboral_id INT DEFAULT NULL,fecha_nacimiento DATE NOT NULL,sexo VARCHAR(10) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`,codigo_postal VARCHAR(10) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,provincia VARCHAR(100) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,municipio VARCHAR(100) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,telefono VARCHAR(20) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,nombre VARCHAR(100) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`,apellido1 VARCHAR(100) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`,apellido2 VARCHAR(100) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`,tipo_via VARCHAR(50) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,nombre_via VARCHAR(150) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,numero_via VARCHAR(10) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,portal VARCHAR(10) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,bloque VARCHAR(10) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,escalera VARCHAR(10) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,planta VARCHAR(10) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,puerta VARCHAR(10) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,tipo_formador VARCHAR(30) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,entidad_externa VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,cif_entidad_externa VARCHAR(20) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,direccion_entidad_externa VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,contacto_entidad_externa VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`,UNIQUE INDEX UNIQ_D95AB405A76ED395 (user_id),INDEX IDX_D95AB405EFEE8B82 (puesto_trabajo_id),INDEX IDX_D95AB4059C833003 (grupo_id),INDEX IDX_D95AB40556DEA406 (centro_trabajo_id),INDEX IDX_D95AB40516A490EC (especialidad_id),INDEX IDX_D95AB4058577D28 (situacion_laboral_id),PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\'');}public function down(Schema $schema): void{// this down() migration is auto-generated, please modify it to your needs$this->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'.");$this->addSql('DROP TABLE app_contact');$this->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'.");$this->addSql('DROP TABLE app_faq');$this->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'.");$this->addSql('DROP TABLE attendance');$this->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'.");$this->addSql('DROP TABLE centers');$this->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'.");$this->addSql('DROP TABLE event_request');$this->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'.");$this->addSql('DROP TABLE events');$this->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'.");$this->addSql('DROP TABLE events_taxonomy_value');$this->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'.");$this->addSql('DROP TABLE events_user');$this->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'.");$this->addSql('DROP TABLE home_slider');$this->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'.");$this->addSql('DROP TABLE logs');$this->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'.");$this->addSql('DROP TABLE messenger_messages');$this->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'.");$this->addSql('DROP TABLE params');$this->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'.");$this->addSql('DROP TABLE penalty_reason');$this->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'.");$this->addSql('DROP TABLE registration_qualifications');$this->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'.");$this->addSql('DROP TABLE registrations');$this->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'.");$this->addSql('DROP TABLE reset_password_request');$this->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'.");$this->addSql('DROP TABLE role');$this->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'.");$this->addSql('DROP TABLE taxonomy');$this->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'.");$this->addSql('DROP TABLE taxonomy_value');$this->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'.");$this->addSql('DROP TABLE user');$this->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'.");$this->addSql('DROP TABLE user_penalty');$this->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'.");$this->addSql('DROP TABLE user_profile');}}