Skip to content

Commit d3dd7ec

Browse files
committed
Update to latest schema
1 parent 2ab4584 commit d3dd7ec

File tree

2 files changed

+18
-9
lines changed

2 files changed

+18
-9
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ PATH
2424
activerecord (>= 3.2.21, < 4.0.0)
2525
metasploit-credential (~> 0.14.3)
2626
metasploit-framework (= 4.11.0.pre.dev)
27-
metasploit_data_models (~> 0.23.0)
27+
metasploit_data_models (~> 0.23.2)
2828
pg (>= 0.11)
2929
metasploit-framework-pcap (4.11.0.pre.dev)
3030
metasploit-framework (= 4.11.0.pre.dev)

db/schema.rb

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

14-
ActiveRecord::Schema.define(:version => 20150312155312) do
14+
ActiveRecord::Schema.define(:version => 20150326183742) do
1515

1616
create_table "api_keys", :force => true do |t|
1717
t.text "token"
@@ -27,6 +27,9 @@
2727
t.datetime "updated_at", :null => false
2828
end
2929

30+
add_index "automatic_exploitation_match_results", ["match_id"], :name => "index_automatic_exploitation_match_results_on_match_id"
31+
add_index "automatic_exploitation_match_results", ["run_id"], :name => "index_automatic_exploitation_match_results_on_run_id"
32+
3033
create_table "automatic_exploitation_match_sets", :force => true do |t|
3134
t.integer "workspace_id"
3235
t.integer "user_id"
@@ -60,6 +63,10 @@
6063
t.datetime "updated_at", :null => false
6164
end
6265

66+
add_index "automatic_exploitation_runs", ["match_set_id"], :name => "index_automatic_exploitation_runs_on_match_set_id"
67+
add_index "automatic_exploitation_runs", ["user_id"], :name => "index_automatic_exploitation_runs_on_user_id"
68+
add_index "automatic_exploitation_runs", ["workspace_id"], :name => "index_automatic_exploitation_runs_on_workspace_id"
69+
6370
create_table "clients", :force => true do |t|
6471
t.integer "host_id"
6572
t.datetime "created_at"
@@ -143,7 +150,7 @@
143150

144151
create_table "hosts", :force => true do |t|
145152
t.datetime "created_at"
146-
t.string "address", :null => false
153+
t.string "address", :limit => nil, :null => false
147154
t.string "mac"
148155
t.string "comm"
149156
t.string "name"
@@ -407,8 +414,7 @@
407414
t.datetime "attempted_at"
408415
t.text "fail_detail"
409416
t.string "fail_reason"
410-
t.integer "module_detail_id"
411-
t.text "module_full_name"
417+
t.text "module_fullname"
412418
t.integer "port"
413419
t.string "proto"
414420
t.integer "session_id"
@@ -417,10 +423,13 @@
417423
t.string "trackable_type"
418424
t.integer "user_id"
419425
t.string "username"
420-
t.datetime "created_at", :null => false
421-
t.datetime "updated_at", :null => false
426+
t.datetime "created_at", :null => false
427+
t.datetime "updated_at", :null => false
422428
end
423429

430+
add_index "module_runs", ["session_id"], :name => "index_module_runs_on_session_id"
431+
add_index "module_runs", ["user_id"], :name => "index_module_runs_on_user_id"
432+
424433
create_table "module_targets", :force => true do |t|
425434
t.integer "detail_id"
426435
t.integer "index"
@@ -753,7 +762,7 @@
753762

754763
create_table "wmap_requests", :force => true do |t|
755764
t.string "host"
756-
t.string "address"
765+
t.string "address", :limit => nil
757766
t.integer "port"
758767
t.integer "ssl"
759768
t.string "meth", :limit => 32
@@ -770,7 +779,7 @@
770779

771780
create_table "wmap_targets", :force => true do |t|
772781
t.string "host"
773-
t.string "address"
782+
t.string "address", :limit => nil
774783
t.integer "port"
775784
t.integer "ssl"
776785
t.integer "selected"

0 commit comments

Comments
 (0)