Fix up old migrations to make MySQL happy
git-svn-id: file:///home/svn/framework3/trunk@11244 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
284e568f7c
commit
f448dbace3
|
@ -12,14 +12,14 @@ class AddWebTables < ActiveRecord::Migration
|
|||
create_table :web_pages do |t|
|
||||
t.integer :web_site_id, :null => false
|
||||
t.timestamps
|
||||
t.string :path, :limit => 4096
|
||||
t.string :query, :limit => 4096
|
||||
t.text :path
|
||||
t.text :query
|
||||
t.integer :code, :null => false
|
||||
t.string :cookie, :limit => 4096
|
||||
t.string :auth, :limit => 4096
|
||||
t.string :ctype, :limit => 4096
|
||||
t.text :cookie
|
||||
t.text :auth
|
||||
t.text :ctype
|
||||
t.timestamp :mtime
|
||||
t.string :location, :limit => 1300
|
||||
t.text :location
|
||||
t.text :body
|
||||
t.text :headers
|
||||
end
|
||||
|
@ -27,7 +27,7 @@ class AddWebTables < ActiveRecord::Migration
|
|||
create_table :web_forms do |t|
|
||||
t.integer :web_site_id, :null => false
|
||||
t.timestamps
|
||||
t.string :path, :limit => 4096
|
||||
t.text :path
|
||||
t.string :method, :limit => 1024
|
||||
t.text :params
|
||||
end
|
||||
|
@ -35,10 +35,10 @@ class AddWebTables < ActiveRecord::Migration
|
|||
create_table :web_vulns do |t|
|
||||
t.integer :web_site_id, :null => false
|
||||
t.timestamps
|
||||
t.string :path, :limit => 4096
|
||||
t.text :path
|
||||
t.string :method, :limit => 1024
|
||||
t.text :params
|
||||
t.string :pname, :limit => 4096
|
||||
t.text :pname
|
||||
t.text :proof
|
||||
t.integer :risk
|
||||
t.string :name, :limit => 1024
|
||||
|
|
|
@ -16,15 +16,15 @@ class FixWebTables < ActiveRecord::Migration
|
|||
end
|
||||
|
||||
def self.down
|
||||
change_column :web_pages, :path, :string, :limit => 4096
|
||||
change_column :web_pages, :query, :string, :limit => 4096
|
||||
change_column :web_pages, :cookie, :string, :limit => 4096
|
||||
change_column :web_pages, :auth, :string, :limit => 4096
|
||||
change_column :web_pages, :ctype, :string, :limit => 4096
|
||||
change_column :web_pages, :location, :string, :limit => 1300
|
||||
change_column :web_pages, :path, :string, :limit => 4096
|
||||
change_column :web_vulns, :path, :string, :limit => 4096
|
||||
change_column :web_vulns, :pname, :string, :limit => 4096
|
||||
change_column :web_pages, :path, :text
|
||||
change_column :web_pages, :query, :text
|
||||
change_column :web_pages, :cookie, :text
|
||||
change_column :web_pages, :auth, :text
|
||||
change_column :web_pages, :ctype, :text
|
||||
change_column :web_pages, :location, :text
|
||||
change_column :web_pages, :path, :text
|
||||
change_column :web_vulns, :path, :text
|
||||
change_column :web_vulns, :pname, :text
|
||||
|
||||
remove_column :web_pages, :request
|
||||
remove_column :web_vulns, :request
|
||||
|
|
Loading…
Reference in New Issue