feat: 支持通过Flyway自动初始化数据库
- 将 starter 初始化脚本迁移到 db/migration,并保留 V1-V3 作为首批迁移 - 清理旧 sql/initdb 挂载与历史分段 SQL,避免 Docker 启动时重复导库 - 更新 README、应用配置和中间件编排,统一空库启动方式
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user