feat(database): use alembic

This commit is contained in:
MingxuanGame
2025-07-28 13:09:55 +00:00
parent 80310d450b
commit 9b889bc602
18 changed files with 329 additions and 10 deletions

View File

@@ -183,7 +183,7 @@ def main():
return
# 执行表结构创建
migrations_dir = os.path.join(os.path.dirname(__file__), "migrations")
migrations_dir = os.path.join(os.path.dirname(__file__), "migrations_old")
print("\n步骤 1: 创建表结构...")
add_fields_sql = os.path.join(migrations_dir, "add_missing_fields.sql")