feat: 接入 Flyway 基线迁移,空库启动自动建表

This commit is contained in:
2026-10-21 23:54:00 +08:00
parent f5a8f9351e
commit 8307ff95e4
11 changed files with 892 additions and 52 deletions
@@ -4,6 +4,13 @@
spring:
profiles:
active: dev
# 空库启动时先跑 classpath:db/migration;业务种子仍由 SysInitRunner 灌入
flyway:
enabled: true
locations: classpath:db/migration
encoding: UTF-8
# 基线含循环外键,单事务执行整份脚本
execute-in-transaction: true
jackson:
time-zone: Asia/Shanghai
mvc: