Update: revert
This commit is contained in:
parent
a5f8ba7a84
commit
66fe84e3eb
7 changed files with 45 additions and 39 deletions
14
backend/application/manage.py
Normal file
14
backend/application/manage.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
from flask_script import Manager
|
||||
from flask_migrate import Migrate, MigrateCommand
|
||||
|
||||
from flask import current_app as app
|
||||
from backend import db
|
||||
|
||||
migrate = Migrate(app, db)
|
||||
manager = Manager(app)
|
||||
|
||||
manager.add_command('db', MigrateCommand)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
manager.run()
|
||||
Loading…
Add table
Add a link
Reference in a new issue