Ya estoy inscrito ¿Todavía no tienes acceso? Nuestros Planes
Ya estoy inscrito ¿Todavía no tienes acceso? Nuestros Planes
1
respuesta

PROBLEMAS AL CREAR LA TABLA

al momento de correr la aplicación, esta dándome una excepción y no entiendo el porque no me crea la tabla de médicos.

y esto es lo que me arroja:

2024-07-04T00:18:40.754-05:00 WARN 16052 --- [api] [ restartedMain] o.f.c.internal.database.base.Database : Flyway upgrade recommended: MySQL 9.0 is newer than this version of Flyway and support has not been tested. The latest supported version of MySQL is 8.1. 2024-07-04T00:18:40.865-05:00 WARN 16052 --- [api] [ restartedMain] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Failed to initialize dependency 'flywayInitializer' of LoadTimeWeaverAware bean 'entityManagerFactory': Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Validate failed: Migrations have failed validation Detected failed migration to version 1 (create-table-medicos). Please remove any half-completed changes then run repair to fix the schema history.

1 respuesta

SE CREO AUTOMATICAMENTE " flyway_schema_historyflyway_schema_history " EN LA BASE DE DATOS, ELIMINALO Y VUELVE A EJECUTAR LA APLICACION. MYSQL BASE DE DATOS ELIMINA EL FLYWAY HISTORY