Files
metasploit-gs/data/sql/migrate/026_add_creds_table.rb
T
Tod Beardsley 6d6a547b34 Fixes #2412. Adds a creds table, modifies the db_report_auth API, adds the db_creds and db_add_cred commands.
git-svn-id: file:///home/svn/framework3/trunk@10034 4d416f70-5f16-0410-b530-b9f4589650da
2010-08-18 00:58:20 +00:00

20 lines
448 B
Ruby

class AddCredsTable < ActiveRecord::Migration
def self.up
create_table :creds do |t|
t.integer :service_id, :null => false
t.timestamps
t.string :user, :limit => 2048
t.string :pass, :limit => 4096
t.boolean :active, :default => true
t.string :proof, :limit => 4096
t.string :ptype, :limit => 16
t.integer :source_id
t.string :source_type
end
end
def self.down
drop_table :creds
end
end