初次提交项目
This commit is contained in:
7
init_db.py
Normal file
7
init_db.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from app import app, bootstrap
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
with app.app_context():
|
||||
bootstrap()
|
||||
print("数据库初始化完成: data/inventory.db")
|
||||
Reference in New Issue
Block a user