Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

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

Markus Kahlce719c03fc5d
diff --git a/db/migrate/20200907090753_change_attachment_filesize_to_big_int.rb b/db/migrate/20200907090753_change_attachment_filesize_to_big_int.rb
new file mode 100644
index 00000000000..56892b5ff32
--- /dev/null
+++ b/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