PATH:
opt
/
imunify360
/
venv
/
lib
/
python3.11
/
site-packages
/
im360
/
migrations
import logging from pathlib import Path from im360.plugins.waf_rules_configurator import WAF_CONFIGURATOR_CRON_PATH logger = logging.getLogger(__name__) def migrate(migrator, database, fake=False, **kwargs): if fake: # Nothing to do in fake mode, it used to prepare models to following # migrations return try: Path(WAF_CONFIGURATOR_CRON_PATH).unlink(missing_ok=True) except Exception as e: logger.error( "Something wrong happened in migration 005_ip_network_v6_fix %r", e, ) def rollback(migrator, database, fake=False, **kwargs): """Write your rollback migrations here.""" pass
[-] 003_move_remote_ipsetlist_tables_into_separate_db.py
[edit]
[-] 002_move_resident_tables_into_separate_db.py
[edit]
[-] 000_noop_migration.py
[edit]
[+]
__pycache__
[-] 001_whmapi1_set_importance_im360.py
[edit]
[-] 007_add_mask_to_ip_ingnored_port.py
[edit]
[-] 008_index_for_iplistrecord_iplist_id.py
[edit]
[-] 005_ip_network_v6_fix.py
[edit]
[-] 004_ips_as_packed_network.py
[edit]
[-] __init__.py
[edit]
[-] 006_remove_waf_configurator_cron.py
[edit]
[+]
..