Skip to content

Commit 5d64bc0

Browse files
committed
Uses new MDM version. A few versions were apparently skipped, so the
schema.rb changes include those as well.
1 parent 034e0b6 commit 5d64bc0

File tree

3 files changed

+5
-55
lines changed

3 files changed

+5
-55
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ group :db do
1717
# Needed for Msf::DbManager
1818
gem 'activerecord'
1919
# Database models shared between framework and Pro.
20-
gem 'metasploit_data_models', '~> 0.16.1'
20+
gem 'metasploit_data_models', '~> 0.16.6'
2121
# Needed for module caching in Mdm::ModuleDetails
2222
gem 'pg', '>= 0.11'
2323
end

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ GEM
2323
i18n (0.6.1)
2424
json (1.7.7)
2525
metaclass (0.0.1)
26-
metasploit_data_models (0.16.1)
26+
metasploit_data_models (0.16.6)
2727
activerecord (>= 3.2.13)
2828
activesupport
2929
pg
@@ -67,7 +67,7 @@ DEPENDENCIES
6767
database_cleaner
6868
factory_girl (>= 4.1.0)
6969
json
70-
metasploit_data_models (~> 0.16.1)
70+
metasploit_data_models (~> 0.16.6)
7171
msgpack
7272
network_interface (~> 0.0.1)
7373
nokogiri

db/schema.rb

Lines changed: 2 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -11,38 +11,14 @@
1111
#
1212
# It's strongly recommended to check this file into your version control system.
1313

14-
ActiveRecord::Schema.define(:version => 20130604145732) do
14+
ActiveRecord::Schema.define(:version => 20130717150737) do
1515

1616
create_table "api_keys", :force => true do |t|
1717
t.text "token"
1818
t.datetime "created_at", :null => false
1919
t.datetime "updated_at", :null => false
2020
end
2121

22-
create_table "attachments", :force => true do |t|
23-
t.string "name", :limit => 512
24-
t.binary "data"
25-
t.string "content_type", :limit => 512
26-
t.boolean "inline", :default => true, :null => false
27-
t.boolean "zip", :default => false, :null => false
28-
t.integer "campaign_id"
29-
end
30-
31-
create_table "attachments_email_templates", :id => false, :force => true do |t|
32-
t.integer "attachment_id"
33-
t.integer "email_template_id"
34-
end
35-
36-
create_table "campaigns", :force => true do |t|
37-
t.integer "workspace_id", :null => false
38-
t.string "name", :limit => 512
39-
t.text "prefs"
40-
t.integer "status", :default => 0
41-
t.datetime "started_at"
42-
t.datetime "created_at", :null => false
43-
t.datetime "updated_at", :null => false
44-
end
45-
4622
create_table "clients", :force => true do |t|
4723
t.integer "host_id"
4824
t.datetime "created_at"
@@ -65,24 +41,6 @@
6541
t.string "source_type"
6642
end
6743

68-
create_table "email_addresses", :force => true do |t|
69-
t.integer "campaign_id", :null => false
70-
t.string "first_name", :limit => 512
71-
t.string "last_name", :limit => 512
72-
t.string "address", :limit => 512
73-
t.boolean "sent", :default => false, :null => false
74-
t.datetime "clicked_at"
75-
end
76-
77-
create_table "email_templates", :force => true do |t|
78-
t.string "name", :limit => 512
79-
t.string "subject", :limit => 1024
80-
t.text "body"
81-
t.integer "parent_id"
82-
t.integer "campaign_id"
83-
t.text "prefs"
84-
end
85-
8644
create_table "events", :force => true do |t|
8745
t.integer "workspace_id"
8846
t.integer "host_id"
@@ -581,22 +539,14 @@
581539
add_index "web_sites", ["options"], :name => "index_web_sites_on_options"
582540
add_index "web_sites", ["vhost"], :name => "index_web_sites_on_vhost"
583541

584-
create_table "web_templates", :force => true do |t|
585-
t.string "name", :limit => 512
586-
t.string "title", :limit => 512
587-
t.string "body", :limit => 524288
588-
t.integer "campaign_id"
589-
t.text "prefs"
590-
end
591-
592542
create_table "web_vulns", :force => true do |t|
593543
t.integer "web_site_id", :null => false
594544
t.datetime "created_at", :null => false
595545
t.datetime "updated_at", :null => false
596546
t.text "path", :null => false
597547
t.string "method", :limit => 1024, :null => false
598548
t.text "params", :null => false
599-
t.text "pname", :null => false
549+
t.text "pname"
600550
t.integer "risk", :null => false
601551
t.string "name", :limit => 1024, :null => false
602552
t.text "query"

0 commit comments

Comments
 (0)