from flask_script import Manager
from App import create_app
from flask_migrate import MigrateCommand

app = create_app()
manager = Manager(app)
# 添加自定义命令: 迁移命令
manager.add_command('db', MigrateCommand)


if __name__ == '__main__':
    manager.run()