feat: 服务端集成自动打包流程
This commit is contained in:
@@ -52,6 +52,9 @@ def _seed_admin():
|
||||
|
||||
def init_db():
|
||||
"""初始化数据库"""
|
||||
# Load model declarations before create_all so a standalone startup creates every table.
|
||||
from . import models # noqa: F401
|
||||
|
||||
Base.metadata.create_all(bind=engine)
|
||||
_migrate_db()
|
||||
_seed_admin()
|
||||
|
||||
Reference in New Issue
Block a user