Zkt22/assignment1-fruitapp/fruitapp-backend/manage.py
2022-04-25 14:49:43 +05:30

13 lines
268 B
Python
Executable File

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()