https://documentation.red-gate.com/fd/
pom.xml 增加配置
```xml
org.flywaydb
flyway-core
10.11.0
mysql迁移
org.flywaydb
flyway-mysql
```
pgsql迁移xml <dependency> <groupId>org.flywaydb</groupId> <artifactId>flyway-database-postgresql</artifactId> </dependency>
applcation.yml 增加配置yml flyway: enabled: true baseline-on-migrate: true baseline-version: 20230720000000 clean-disabled: true #指定sql文件路径 locations: - classpath:db/migration/postgresql
请在每一个模块的src/main/resources/db/migration/postgresql下创建sql文件,没有请手动新增目录
迁移文件命名规则V2023072000000__create_table_note_template.sql
开发时期可修改历史sql脚本,投产请使用新增sql文件修改数据库,禁止直接修改数据库