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

@@ -61,10 +61,6 @@ services:
MYSQL_DATABASE: easyflow
ports:
- "3306:3306"
volumes:
- ./sql:/docker-entrypoint-initdb.d
# 这个命令在默认 entrypoint 运行前修复权限
entrypoint: sh -c "chown -R mysql:mysql /docker-entrypoint-initdb.d && docker-entrypoint.sh mysqld"
networks:
- easyflow-net
healthcheck: