Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

changed allowed_children_cache type from string to text so old (mysql…

…) versions dont truncate the contents and wreck havoc. Fixes GH-316
  • Loading branch information...
commit d87e9a71db8aa56c120e0e00a4edbede285f7d63 1 parent d11f483
@jfahrenkrug jfahrenkrug authored
View
2  db/migrate/20110902203823_add_allowed_children_cache_to_pages.rb
@@ -1,6 +1,6 @@
class AddAllowedChildrenCacheToPages < ActiveRecord::Migration
def self.up
- add_column :pages, :allowed_children_cache, :string, :limit => 1500, :default => ''
+ add_column :pages, :allowed_children_cache, :text, :default => ''
Page.reset_column_information
Page.find_each do |page|
page.save # update the allowed_children_cache
View
4 db/schema.rb
@@ -9,7 +9,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20110902203823) do
+ActiveRecord::Schema.define(:version => 20111016150725) do
create_table "assets", :force => true do |t|
t.string "caption"
@@ -89,7 +89,7 @@
t.integer "updated_by_id"
t.boolean "virtual", :default => false, :null => false
t.integer "lock_version", :default => 0
- t.string "allowed_children_cache", :default => ""
+ t.text "allowed_children_cache", :default => ""
end
add_index "pages", ["class_name"], :name => "altered_pages_class_name"
Please sign in to comment.
Something went wrong with that request. Please try again.