数据库迁移工具Flyway知识点

如果某个flyway迁移sql执行没成功,此时迁移表里,该行迁移记录success字段值为0;修改迁移sql后,先把该行迁移记录删除,再次启动应用进行迁移。

资料 说明
Spring Boot中使用Flyway【如果使用Spring Boot的依赖管理功能,不需要为Flyway指定版本号。】 https://documentation.red-gate.com/fd/community-plugins-and-integrations-spring-boot-184127423.html
Spring Boot中使用Flyway配置项【注意,这些配置项的名称与Flyway的原生配置项不同。】 https://docs.spring.io/spring-boot/docs/current/reference/html/application-properties.html#appendix.application-properties.data-migration

posted on 2024-02-22 20:53  cag2050  阅读(10)  评论(0编辑  收藏  举报

导航