Migration from Spring Boot 2.6 to 2.7 - FlywayException: Unsupported Database: Microsoft SQL Server 15.0

jpfvwuh4  于 2023-06-21  发布在  Spring
关注(0)|答案(1)|浏览(133)

During migration of a Java app using Spring Boot 2.6 to 2.7, new Flyway version (8.5.13) seems to not support anymore SQL Server 15 (2019).
Error org.flywaydb.core.api.FlywayException: Unsupported Database: Microsoft SQL Server 15.0

I try with older version of SQL Server 14 (2017) and get almost same error

Error org.flywaydb.core.api.FlywayException: Unsupported Database: Microsoft SQL Server 14.0

Somebody already resovled this problem?

eh57zj3b

eh57zj3b1#

The SQL Server code was extracted to a separate dependency in Flyway 8.1.0

From that release onwards, you will need to add flyway-sqlserver as an additional dependency, e.g.:

# Maven
<dependency>
    <groupId>org.flywaydb</groupId>
    <artifactId>flyway-sqlserver</artifactId>
</dependency>

# Gradle
dependencies {
    compile "org.flywaydb:flyway-sqlserver"
}

相关问题