el archivo V1__create-table-medicos.sql
create table medicos(
id bigint not null auto_increment,
nombre varchar(100) not null,
email varchar(100) not null unique,
documento varchar(12) not null unique,
especialidad varchar(100) not null,
calle varchar(100) not null,
barrio varchar(100) not null,
codigo_postal varchar(12) not null,
complemento varchar(100),
numero varchar(20),
estado char(100) not null,
ciudad varchar(100) not null,
primary key(id)
);
en el archivo : V2__alter_table-medicos-add-columns-telefono.sql
alter table medicos add telefono varchar(20) not null;
El archivo histórico de flyway tiene solo un registro con el V1__ las dependencias, las tengo asi: con el parametro success=1, el V2___ no lo graba, en este historico y sale el error.
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<scope>provided</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-core</artifactId>
</dependency>
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-mysql</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
<scope>runtime</scope>
</dependency>
El error es:
:: Spring Boot :: (v3.5.3)
2025-07-01T08:53:56.210-05:00 INFO 784 --- [api] [ restartedMain] med.voll.api.ApiApplication : Starting ApiApplication using Java 17.0.12 with PID 784 (E:\JavaProjects\23-api-rest-voll-med-alura\target\classes started by ReneAvilaAlonso in E:\JavaProjects\23-api-rest-voll-med-alura)
2025-07-01T08:53:56.226-05:00 INFO 784 --- [api] [ restartedMain] med.voll.api.ApiApplication : No active profile set, falling back to 1 default profile: "default"
ver siguiente aparte de continuación del error.