Sindbad~EG File Manager

Current Path : /proc/thread-self/root/opt/imunify360/venv/lib/python3.11/site-packages/defence360agent/migrations/
Upload File :
Current File : //proc/thread-self/root/opt/imunify360/venv/lib/python3.11/site-packages/defence360agent/migrations/069_incidents_domain_field.py

import peewee as pw


def migrate(migrator, database, fake=False, **kwargs):
    Incident = migrator.orm["incident"]
    migrator.add_fields(Incident, domain=pw.TextField(default=None, null=True))


def rollback(migrator, database, fake=False, **kwargs):
    Incident = migrator.orm["incident"]
    migrator.remove_fields(Incident, "domain")

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists