Files
c/backend/init_db.py
刘正航 38cb9345d6 feat: init_db自动执行SQL迁移脚本
数据库初始化时自动执行sql目录下的迁移脚本,支持幂等执行:
- 遍历sql/*.sql文件按顺序执行
- 忽略重复字段/索引错误(MySQL 1060/1061)
- 输出执行的迁移文件列表

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-22 21:52:25 +08:00

6.4 KiB