97a35e280b
% rake upgrade_instiki fixes some potential problems in the database column types. Revision content can now be up to 16MB. Under MySQL, the previous limit was 64KB. Page names can now be up to 255 bytes. Under MySQL, the previous limit was 60 bytes. Additional CSS styles can now be up to 64KB. Under MySQL, the previous limit was 255 bytes. Thanks to Andrew Stacey for reporting these.
12 lines
313 B
Ruby
12 lines
313 B
Ruby
class ModifyTextTypes < ActiveRecord::Migration
|
|
def self.up
|
|
change_column :revisions, :content, :text, :limit => 16777215
|
|
change_column :pages, :name, :string, :limit => 255
|
|
change_column :webs, :additional_style, :text
|
|
end
|
|
|
|
def self.down
|
|
raise ActiveRecord::IrreversibleMigration
|
|
end
|
|
end
|