the output fields on build_parts and builds are both text types, which means that when using MySQL* these are truncated to 64K characters. This might be fine for most things, but is insufficient if the output of bundle install and rake db:migrate are included and then a bunch of test outputs.
class OutputNeedsToBeLongtextWithMysql < ActiveRecord::Migration
def self.up
change_column :build_parts, :output, :longtext
change_column :builds, :output, :longtext
end
def self.down
change_column :build_parts, :output, :text
change_column :builds, :output, :text
end
end
the migration has no effect using sqlite but does change the column to longtext when using mysql. The commit is on a branch on my fork.
Hi,
the output fields on build_parts and builds are both text types, which means that when using MySQL* these are truncated to 64K characters. This might be fine for most things, but is insufficient if the output of bundle install and rake db:migrate are included and then a bunch of test outputs.
the migration has no effect using sqlite but does change the column to longtext when using mysql. The commit is on a branch on my fork.
*=http://www.electrictoolbox.com/maximum-length-mysql-text-field-types/