mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-01 03:18:29 +08:00
22 lines
315 B
Python
22 lines
315 B
Python
from flask_script import Manager
|
|
|
|
from engine import db, app
|
|
|
|
manager = Manager(app)
|
|
|
|
@manager.command
|
|
def create_all():
|
|
db.create_all()
|
|
|
|
@manager.command
|
|
def drop_all():
|
|
db.drop_all()
|
|
|
|
@manager.command
|
|
def recreate_all():
|
|
db.drop_all()
|
|
db.create_all()
|
|
|
|
if __name__ == '__main__':
|
|
manager.run()
|