PATH:
opt
/
imunify360
/
venv
/
lib
/
python3.11
/
site-packages
/
defence360agent
/
migrations
"""Peewee migrations: :: > Model = migrator.orm['name'] > migrator.sql(sql) > migrator.python(func, *args, **kwargs) > migrator.create_model(Model) > migrator.remove_model(Model, cascade=True) > migrator.add_fields(Model, **fields) > migrator.change_fields(Model, **fields) > migrator.remove_fields(Model, *field_names, cascade=True) > migrator.rename_field(Model, old_field_name, new_field_name) > migrator.rename_table(Model, new_table_name) > migrator.add_index(Model, *col_names, unique=False) > migrator.drop_index(Model, *col_names) > migrator.add_not_null(Model, *field_names) > migrator.drop_not_null(Model, *field_names) > migrator.add_default(Model, field_name, default) """ import peewee as pw def migrate(migrator, database, fake=False, **kwargs): """Write your migrations here.""" IPList = migrator.orm["iplist"] migrator.add_fields(IPList, comment=pw.CharField(null=True)) def rollback(migrator, database, fake=False, **kwargs): """Write your rollback migrations here.""" IPList = migrator.orm["iplist"] migrator.remove_fields(IPList, "comment")
[+]
..
[-] 170_add_db_fields_to_malware_history.py
[edit]
[-] 053_populate_whitelisted_crawlers.py
[edit]
[-] 025_malware_config_realtime.py
[edit]
[-] 032_chmod_quarantine.py
[edit]
[-] conf.py
[edit]
[-] 024_ignore_from_graylist.py
[edit]
[-] 062_fix_null_expiration.py
[edit]
[-] 021_add_testing_repo.py
[edit]
[-] 151_change_constraint_for_iplist.py
[edit]
[-] 115_feature_management_fields.py
[edit]
[-] 027_disable_comdo_fp_rules.py
[edit]
[-] 043_disable_dos_scan_by_default.py
[edit]
[-] 103_remove_vd_license.py
[edit]
[-] 013_add_indexes_to_iplist.py
[edit]
[-] 082_add_cl_on_premise_backup_option.py
[edit]
[-] 107_add_bruteforce_rule_33339.py
[edit]
[-] 096_populate_total_malicious_field.py
[edit]
[-] 080_populate_uid_gid_size_hash_fields.py
[edit]
[-] 139_generic_modsec_config.py
[edit]
[-] 144_remove_hash_table.py
[edit]
[-] 126_add_malware_scan_modified_files_option.py
[edit]
[-] 113_move_quarantined_files.py
[edit]
[-] 083_drop_no_captcha_field.py
[edit]
[-] 098_remote_proxy_tables.py
[edit]
[-] 114_disable_auto-quarantine.py
[edit]
[-] 087_ignored_by_port_fields.py
[edit]
[-] 075_ips_as_int.py
[edit]
[-] 005_timeout_in_iplist.py
[edit]
[-] 152_add_listname_to_primary_key.py
[edit]
[-] 017_remove_sensor_prefix.py
[edit]
[-] 066_eula_table.py
[edit]
[-] 063_fix_graylist_doslist_expiration_discrepancy.py
[edit]
[-] 105_populate_default_feature_management_permissions.py
[edit]
[-] 131_incident_timestamp_index.py
[edit]
[-] 040_ignore_mod_sec_rule_214920.py
[edit]
[-] 118_remove_country_subnets.py
[edit]
[-] 037_disabled_rules.py
[edit]
[-] 015_add_iplist_expiration_index.py
[edit]
[-] 161_remove_ea4_main_local_conf.py
[edit]
[-] 156_remove_default_values_from_config.py
[edit]
[-] 101_remove_unneeded_acronis_ports_from_csf.py
[edit]
[-] 062_drop_malware_extra_data.py
[edit]
[-] 047_license_in_file.py
[edit]
[-] 001_initial.py
[edit]
[-] 147_user_scan_type.py
[edit]
[-] 092_ignore_proc_sys_dirs.py
[edit]
[-] 138_move_rapid_scan_dir.py
[edit]
[-] 088_add_malware_i360_clamd_scan_option.py
[edit]
[-] 100_remove_captcha_ports_from_csf.py
[edit]
[-] 058_convert_license_last_attempt.py
[edit]
[-] 064_chmod_i360deploy_log.py
[edit]
[-] 092_remove_old_disabled_rules.py
[edit]
[-] 094_ignore_cagefs_proc.py
[edit]
[-] 123_add_last_user_scan.py
[edit]
[-] 134_change_default_of_intensity_ram.py
[edit]
[-] 078_fix_signatures_permissions.py
[edit]
[-] 038_disabled_rules_import.py
[edit]
[-] 169_add_record_to_throttle_scan_not_schedule_events.py
[edit]
[-] 034_hits_extras.py
[edit]
[-] 110_ignore_list_ip_as_int.py
[edit]
[-] 022_mod_security_vendors_migrations.py
[edit]
[-] 118_add_malware_user_infected.py
[edit]
[-] 183_add_user_field_to_malware_scans.py
[edit]
[-] 135_export_proactive.py
[edit]
[-] 163_drop_malware_scanned_stat.py
[edit]
[-] 149_make_config_inactive.py
[edit]
[-] 008_fill_countries.py
[edit]
[-] 126_move_malware_hits_list.py
[edit]
[-] 102_replace_comodo.py
[edit]
[-] 160_unmount_sigs_v1.py
[edit]
[-] 153_migrate_config_default_action.py
[edit]
[-] 073_drop_dos_expiration.py
[edit]
[-] 102_proactive_ignore_list.py
[edit]
[-] 031_add_mode_field.py
[edit]
[-] 127_remove_malware_hit_mode.py
[edit]
[-] 107_malware_hit_status_field_populate.py
[edit]
[-] 081_fix_clamscan_broken_symlink.py
[edit]
[-] 130_add_messages_to_send.py
[edit]
[-] 068_remove_rules_check_interval_from_config.py
[edit]
[-] 140_cast_malware_hit_orig_file_as_blob.py
[edit]
[-] 141_drop_last_user_scans.py
[edit]
[-] 020_malware_scan_types.py
[edit]
[-] 051_cleanup_vd_license.py
[edit]
[-] 002_infected_domain_list.py
[edit]
[-] 031_modsec_config_for_plesk_include.py
[edit]
[-] 014_add_malware_hits.py
[edit]
[-] 187_fix_scan_unserialization.py
[edit]
[-] 104_add_feature_management_permissions.py
[edit]
[-] 007_add_country_code_fields.py
[edit]
[-] 124_add_infected_domains_vendor.py
[edit]
[-] 180_move_captcha_configs.py
[edit]
[-] 186_add_user_field_to_icontact_throttle.py
[edit]
[-] 091_compress_old_logs.py
[edit]
[-] 190_add_analyst_cleanup_request_table.py
[edit]
[-] 049_add_auto_added_field_to_iplist.py
[edit]
[-] 117_remove_incorrect_fields.py
[edit]
[-] 023_add_default_rule_in_modsec_custom_conf.py
[edit]
[-] 004_add_username_to_infected_domain_list.py
[edit]
[-] 106_add_malware_cleanup_in_config.py
[edit]
[-] 153_update_incident_name.py
[edit]
[-] 150_update_captcha_passed_field_for_iplist_entries.py
[edit]
[-] 030_rename_max_incident_repetition.py
[edit]
[+]
__pycache__
[-] 162_add_resource_type.py
[edit]
[-] 045_ignore_vdserver_dir_in_csf.py
[edit]
[-] 137_swap_initiator_and_cause.py
[edit]
[-] 155_migrate_config_user_override_proactive_defense.py
[edit]
[-] 189_add_messages_to_send_nr.py
[edit]
[-] 084_country_subnets_fields.py
[edit]
[-] 006_comment_in_plist.py
[edit]
[-] 144_remove_clamav_config_options.py
[edit]
[-] 016_fix_autowhitelist_expiration.py
[edit]
[-] 090_safe_user_config.py
[edit]
[-] 125_rescan_scan_type.py
[edit]
[-] 050_fill_auto_whitelisted.py
[edit]
[-] 042_rebuildinstalledssldb.py
[edit]
[-] 069_incidents_domain_field.py
[edit]
[-] 147_remove_vendor_field.py
[edit]
[-] 009_drop_blocklist_history.py
[edit]
[-] 071_malware_hits_hash_size_fields.py
[edit]
[-] 010_drop_country_entities.py
[edit]
[-] 036_add_block_port.py
[edit]
[-] 158_move_i360_modsec_disable_conf_symlink.py
[edit]
[-] 121_drop_captcha_stat.py
[edit]
[-] 082_add_manual_flag.py
[edit]
[-] 099_remove_old_disabled_rules.py
[edit]
[-] 029_custom_quarantine.py
[edit]
[-] 072_captcha_stat.py
[edit]
[-] 041_fix_invalid_ignore_filed.py
[edit]
[-] 067_drop_fields_from_modsec_conf.py
[edit]
[-] 054_add_malicious_and_added_date_fileds.py
[edit]
[-] 065_remove_capture_csf_lock_from_config.py
[edit]
[-] 074_ip_as_int.py
[edit]
[-] 011_create_new_country_entities.py
[edit]
[-] 122_cagefs_unmount.py
[edit]
[-] 095_add_total_malicious_field.py
[edit]
[-] 154_migrate_config_user_override_malware_actions.py
[edit]
[-] 046_foreign_key_fix.py
[edit]
[-] 059_scans_error_field.py
[edit]
[-] 039_fix_malware_hits.py
[edit]
[-] 148_reconstruct_pickled_scan_queue.py
[edit]
[-] 070_modsec_incident_names.py
[edit]
[-] 097_remove_uid_and_gid.py
[edit]
[-] 148_remove_malware_user_infected.py
[edit]
[-] 133_add_scope_field_to_iplist.py
[edit]
[-] 129_fixed_cagefs_unmount.py
[edit]
[-] 077_alter_malware_scan.py
[edit]
[-] 159_remove_defaults_from_local_config.py
[edit]
[-] 128_move_cleanup_storage_files.py
[edit]
[-] 124_add_hook_management_functionality.py
[edit]
[-] 168_add_icontact_throttle.py
[edit]
[-] 112_hardened_php.py
[edit]
[-] 057_filename_is_blob.py
[edit]
[-] 165_add_db_fields_to_malware_history.py
[edit]
[-] 012_fill_countries_and_subnets.py
[edit]
[-] 035_add_dos_expiration_field.py
[edit]
[-] 089_proactive_tables.py
[edit]
[-] 033_disable_cphulk.py
[edit]
[-] 116_feature_management_fields.py
[edit]
[-] __init__.py
[edit]
[-] 184_create_a_table_for_secure_site_permissions.py
[edit]
[-] 093_make_quarantined_files_immutable.py
[edit]
[-] 188_add_protection_status_field_myimunify.py
[edit]
[-] 143_malware_hit_cascade_delete.py
[edit]
[-] 123_disable_scheduled_scan.py
[edit]
[-] 185_delete_all_secure_site_id.py
[edit]
[-] 079_add_uid_gid_fields.py
[edit]
[-] 149_add_captcha_passed_field_to_iplist.py
[edit]
[-] 003_import_from_list.py
[edit]
[-] 055_migrate_move_to_quar_option.py
[edit]
[-] 167_remote_iplist.py
[edit]
[-] 164_add_resource_type_to_ignore.py
[edit]
[-] 166_add_id_field_to_malware_ignore_path.py
[edit]
[-] 044_ignore_virtfs_on_cpanel.py
[edit]
[-] 108_validate_config.py
[edit]
[-] 028_set_permanent_ttl_for_blacklist.py
[edit]
[-] 106_malware_hit_status_field_add.py
[edit]
[-] 085_country_subnets_fields.py
[edit]
[-] 052_whitelisted_crawlers.py
[edit]
[-] 056_populate_malicious_with_quarantined.py
[edit]
[-] 026_remove_old_temporary_file.py
[edit]
[-] 072_add_malware_history_table.py
[edit]
[-] 019_purge_old_configs.py
[edit]
[-] 182_remove_constraints_from_icontact_throttle.py
[edit]
[-] 123_rename_plesk_vendor.py
[edit]
[-] 018_license_info.py
[edit]
[-] 145_move_quarantine.py
[edit]
[-] 160_remove_quarantine.py
[edit]
[-] 135_make_completed_nullable.py
[edit]
[-] 136_drop_proactive.py
[edit]
[-] 108_feature_management_cleanup_add.py
[edit]
[-] 119_populate_malware_user_infected.py
[edit]
[-] 120_scheduled_scan.py
[edit]
[-] 086_ignored_by_port_fields.py
[edit]
[-] 111_ignore_list_ip_as_int.py
[edit]
[-] 109_dos_detector.py
[edit]
[-] 076_hash_model.py
[edit]
[-] 146_malware_user_infected_cascade_delete.py
[edit]
[-] 132_add_timestamp_field.py
[edit]
[-] 072_extend_last_synclist.py
[edit]
[-] 048_malware_hits_vendor_field.py
[edit]
[-] 157_move_i360_modsec_disable_conf.py
[edit]
[-] 061_migrate_backup_system_conf.py
[edit]