OXIESEC PANEL
- Current Dir:
/
/
opt
/
alt
/
python37
/
lib
/
python3.7
/
site-packages
/
lvestats
/
utils
/
dbmigrator-back
Server IP: 2a02:4780:11:1084:0:327f:3464:10
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
02/16/2024 09:04:54 PM
rwxr-xr-x
📄
__init__.py
332 bytes
03/16/2023 12:48:11 PM
rw-r--r--
📁
__pycache__
-
02/16/2024 09:04:55 PM
rwxr-xr-x
📄
alembic.ini
1.48 KB
03/16/2023 12:48:11 PM
rw-r--r--
📄
dbgovernor_config.py
1.42 KB
03/16/2023 12:48:11 PM
rw-r--r--
📄
dbmigrate.py
819 bytes
03/16/2023 12:48:11 PM
rw-r--r--
📄
dbmigrate_lib.py
3.22 KB
03/16/2023 12:48:11 PM
rw-r--r--
📄
env.py
2.49 KB
03/16/2023 12:48:11 PM
rw-r--r--
📄
script.py.mako
693 bytes
03/16/2023 12:48:11 PM
rw-r--r--
📄
trash_cleaner.py
810 bytes
03/16/2023 12:48:11 PM
rw-r--r--
📁
versions
-
03/16/2023 11:26:15 AM
rwxr-xr-x
Editing: dbmigrate.py
Close
#!/opt/alt/python37/bin/python3 -bb # coding=utf-8 # # Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2019 All Rights Reserved # # Licensed under CLOUD LINUX LICENSE AGREEMENT # http://cloudlinux.com/docs/LICENSE.TXT from __future__ import print_function from __future__ import absolute_import try: from dbmigrate_lib import alembic_migrate from lvestats.lib.dbengine import make_db_engine from lvestats.lib.config import read_config except ImportError as e: print('Can\'t migrate database; {}'.format(e)) exit(1) from clcommon.lib.cledition import lve_supported_or_exit @lve_supported_or_exit def main(config, _engine): alembic_migrate(_engine, lve_stats_cfg=config) if __name__ == '__main__': cnf = read_config() engine = make_db_engine(cnf) main(cnf, engine)