increase filesize column size to allow for large (>1gb) attachments

pull/8649/head
Markus Kahl 4 years ago
parent 421dab16f4
commit ce719c03fc
  1. 11
      db/migrate/20200907090753_change_attachment_filesize_to_big_int.rb

@ -0,0 +1,11 @@
class ChangeAttachmentFilesizeToBigInt < ActiveRecord::Migration[6.0]
def up
change_column :attachments, :filesize, :integer, limit: 8
change_column :attachment_journals, :filesize, :integer, limit: 8
end
def down
change_column :attachments, :filesize, :integer, limit: 4
change_column :attachment_journals, :filesize, :integer, limit: 4
end
end
Loading…
Cancel
Save