This commit is contained in:
Yûki VACHOT 2021-12-08 03:53:51 +01:00
parent e371b7aabc
commit be5bfa1fb5
10 changed files with 115 additions and 51 deletions

14
backend/manage.py Normal file
View file

@ -0,0 +1,14 @@
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from flask import current_app as app
from . import db
migrate = Migrate(app, db)
manager = Manager(app)
manager.add_command('db', MigrateCommand)
if __name__ == '__main__':
manager.run()