Zkt22/z3/fruitapp-main/fruitapp-backend/manage.py
2022-05-22 16:10:18 +05:30

13 lines
268 B
Python

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