Server IP : 66.29.132.124 / Your IP : 3.148.115.40 Web Server : LiteSpeed System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : wavevlvu ( 1524) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/imunify360/venv/lib/python3.11/site-packages/defence360agent/migrations/ |
Upload File : |
from peewee import CharField, Model, IntegerField, CompositeKey class IPListRecord(Model): network_address = IntegerField(null=False) netmask = IntegerField(null=False) version = IntegerField(null=False) iplist_id = IntegerField(null=False) class Meta: db_table = "iplistrecord" primary_key = CompositeKey( "network_address", "netmask", "version", "iplist_id" ) class IPListPurpose(Model): purpose = CharField(null=False) iplist_id = IntegerField(null=False) class Meta: db_table = "iplistpurpose" primary_key = CompositeKey("purpose", "iplist_id") def migrate(migrator, database, fake=False, **kwargs): migrator.create_model(IPListRecord) migrator.create_model(IPListPurpose) def rollback(migrator, database, fake=False, **kwargs): IPListRecord = migrator.orm["iplistrecord"] migrator.remove_model(IPListRecord) IPListPurpose = migrator.orm["iplistpurpose"] migrator.remove_model(IPListPurpose)