Files
metasploit-gs/data/sql/migrate/005_expand_info.rb
T
HD Moore 7684a6a260 Expand all data/info fields to 4k. Closes #791
git-svn-id: file:///home/svn/framework3/trunk@8325 4d416f70-5f16-0410-b530-b9f4589650da
2010-01-29 17:06:37 +00:00

59 lines
1.1 KiB
Ruby

class ExpandInfo < ActiveRecord::Migration
def self.up
remove_column :events, :info
change_table :events do |t|
t.string :info, :limit => 4096
end
remove_column :notes, :data
change_table :notes do |t|
t.string :data, :limit => 4096
end
remove_column :vulns, :data
change_table :vulns do |t|
t.string :data, :limit => 4096
end
remove_column :hosts, :info
change_table :hosts do |t|
t.string :info, :limit => 4096
end
remove_column :services, :info
change_table :services do |t|
t.string :info, :limit => 4096
end
end
def self.down
remove_column :events, :info
change_table :events do |t|
t.string :info
end
remove_column :notes, :data
change_table :notes do |t|
t.string :data, :limit => 1024
end
remove_column :hosts, :info
change_table :hosts do |t|
t.string :info, :limit => 1024
end
remove_column :vulns, :data
change_table :hosts do |t|
t.string :data, :limit => 1024
end
remove_column :services, :info
change_table :services do |t|
t.string :info, :limit => 1024
end
end
end