Zkt22/z3/fruitapp-main/fruitapp-backend/manage.py

13 lines
268 B
Python
Raw Permalink Normal View History

2022-05-22 10:40:18 +00:00
from flask_migrate import Migrate, MigrateCommand
from flask_script import Manager
from main import app, db
migrate = Migrate(app, db, compare_type=True)
manager = Manager(app)
manager.add_command('db', MigrateCommand)
if __name__ == '__main__':
manager.run()