📁 File Manager Pro
v10.0.2 | PHP: 8.1.34
Server: LiteSpeed
2026-06-29 06:37:41
📂
/
/
opt
/
imunify360
/
venv
/
lib
/
python3.11
/
site-packages
/
defence360agent
/
migrations
✏️
Editing: 062_fix_null_expiration.py
""" Fix IPs that were added with NULL expiration to the WB lists """ def migrate(migrator, database, fake=False, **kwargs): IPListModel = migrator.orm["iplist"] IPListModel.update(expiration=0).where( (IPListModel.listname.in_(["WHITE", "BLACK"])) & (IPListModel.expiration.is_null()) ).execute() def rollback(migrator, database, fake=False, **kwargs): pass
💾 Save Changes
❌ Cancel