metasploit-framework/data/sql/migrate/20120625000003_expand_detai...

25 lines
824 B
Ruby
Raw Normal View History

class ExpandDetails2 < ActiveRecord::Migration
def self.up
add_column :host_details, :nx_site_name, :string
add_column :host_details, :nx_site_importance, :string
add_column :host_details, :nx_scan_template, :string
add_column :host_details, :nx_risk_score, :float
add_column :vuln_details, :nx_scan_id, :integer
add_column :vuln_details, :nx_vulnerable_since, :timestamp
add_column :vuln_details, :nx_pci_compliance_status, :string
end
def self.down
remove_column :host_details, :nx_site_name
remove_column :host_details, :nx_site_importance
remove_column :host_details, :nx_scan_template
remove_column :host_details, :nx_risk_score
remove_column :vuln_details, :nx_scan_id
remove_column :vuln_details, :nx_vulnerable_since
remove_column :vuln_details, :nx_pci_compliance_status
end
end