-
Notifications
You must be signed in to change notification settings - Fork 18
/
manage.py
40 lines (34 loc) · 1.15 KB
/
manage.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from app import app, db
app.config.from_object('config')
migrate = Migrate(app, db)
manager = Manager(app)
manager.add_command('db', MigrateCommand)
if __name__ == '__main__':
"""
Below imports needed for migration
Alphabetize them for readability and to ensure all are added.
"""
from app.models import access_keys
from app.models import activity_log
from app.models import bookmarks
from app.models import c2dns
from app.models import c2ip
from app.models import cfg_category_range_mapping
from app.models import cfg_settings
from app.models import cfg_states
from app.models import comments
from app.models import errors
from app.models import files
from app.models import macros
from app.models import metadata
from app.models import releases
from app.models import scripts
from app.models import tags
from app.models import tags_mapping
from app.models import tasks
from app.models import users
from app.models import whitelist
from app.models import yara_rule
manager.run()