feat: 支持通过Flyway自动初始化数据库

- 将 starter 初始化脚本迁移到 db/migration,并保留 V1-V3 作为首批迁移

- 清理旧 sql/initdb 挂载与历史分段 SQL,避免 Docker 启动时重复导库

- 更新 README、应用配置和中间件编排,统一空库启动方式
This commit is contained in:
2026-03-24 12:36:44 +08:00
parent 07d8193e80
commit b1a16ccf18
19 changed files with 149 additions and 2357 deletions

View File

@@ -72,6 +72,14 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-core</artifactId>
</dependency>
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-mysql</artifactId>
</dependency>
</dependencies>
<build>