Zkt22/assignment1-fruitapp/fruitapp-backend/manage.py

13 lines
268 B
Python
Raw Normal View History

2022-04-25 09:19:43 +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()