From 5d64bc06ac92481f049334f00f419dffe4a0f9f0 Mon Sep 17 00:00:00 2001 From: Samuel Huckins Date: Wed, 17 Jul 2013 11:46:08 -0500 Subject: [PATCH] Uses new MDM version. A few versions were apparently skipped, so the schema.rb changes include those as well. --- Gemfile | 2 +- Gemfile.lock | 4 ++-- db/schema.rb | 54 ++-------------------------------------------------- 3 files changed, 5 insertions(+), 55 deletions(-) diff --git a/Gemfile b/Gemfile index 0fbbd1a78f..042c3437bb 100755 --- a/Gemfile +++ b/Gemfile @@ -17,7 +17,7 @@ group :db do # Needed for Msf::DbManager gem 'activerecord' # Database models shared between framework and Pro. - gem 'metasploit_data_models', '~> 0.16.1' + gem 'metasploit_data_models', '~> 0.16.6' # Needed for module caching in Mdm::ModuleDetails gem 'pg', '>= 0.11' end diff --git a/Gemfile.lock b/Gemfile.lock index 503c913cd9..c532448b29 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -23,7 +23,7 @@ GEM i18n (0.6.1) json (1.7.7) metaclass (0.0.1) - metasploit_data_models (0.16.1) + metasploit_data_models (0.16.6) activerecord (>= 3.2.13) activesupport pg @@ -67,7 +67,7 @@ DEPENDENCIES database_cleaner factory_girl (>= 4.1.0) json - metasploit_data_models (~> 0.16.1) + metasploit_data_models (~> 0.16.6) msgpack network_interface (~> 0.0.1) nokogiri diff --git a/db/schema.rb b/db/schema.rb index 5f4f6d242d..42093e6764 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20130604145732) do +ActiveRecord::Schema.define(:version => 20130717150737) do create_table "api_keys", :force => true do |t| t.text "token" @@ -19,30 +19,6 @@ ActiveRecord::Schema.define(:version => 20130604145732) do t.datetime "updated_at", :null => false end - create_table "attachments", :force => true do |t| - t.string "name", :limit => 512 - t.binary "data" - t.string "content_type", :limit => 512 - t.boolean "inline", :default => true, :null => false - t.boolean "zip", :default => false, :null => false - t.integer "campaign_id" - end - - create_table "attachments_email_templates", :id => false, :force => true do |t| - t.integer "attachment_id" - t.integer "email_template_id" - end - - create_table "campaigns", :force => true do |t| - t.integer "workspace_id", :null => false - t.string "name", :limit => 512 - t.text "prefs" - t.integer "status", :default => 0 - t.datetime "started_at" - t.datetime "created_at", :null => false - t.datetime "updated_at", :null => false - end - create_table "clients", :force => true do |t| t.integer "host_id" t.datetime "created_at" @@ -65,24 +41,6 @@ ActiveRecord::Schema.define(:version => 20130604145732) do t.string "source_type" end - create_table "email_addresses", :force => true do |t| - t.integer "campaign_id", :null => false - t.string "first_name", :limit => 512 - t.string "last_name", :limit => 512 - t.string "address", :limit => 512 - t.boolean "sent", :default => false, :null => false - t.datetime "clicked_at" - end - - create_table "email_templates", :force => true do |t| - t.string "name", :limit => 512 - t.string "subject", :limit => 1024 - t.text "body" - t.integer "parent_id" - t.integer "campaign_id" - t.text "prefs" - end - create_table "events", :force => true do |t| t.integer "workspace_id" t.integer "host_id" @@ -581,14 +539,6 @@ ActiveRecord::Schema.define(:version => 20130604145732) do add_index "web_sites", ["options"], :name => "index_web_sites_on_options" add_index "web_sites", ["vhost"], :name => "index_web_sites_on_vhost" - create_table "web_templates", :force => true do |t| - t.string "name", :limit => 512 - t.string "title", :limit => 512 - t.string "body", :limit => 524288 - t.integer "campaign_id" - t.text "prefs" - end - create_table "web_vulns", :force => true do |t| t.integer "web_site_id", :null => false t.datetime "created_at", :null => false @@ -596,7 +546,7 @@ ActiveRecord::Schema.define(:version => 20130604145732) do t.text "path", :null => false t.string "method", :limit => 1024, :null => false t.text "params", :null => false - t.text "pname", :null => false + t.text "pname" t.integer "risk", :null => false t.string "name", :limit => 1024, :null => false t.text "query"