mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Change uploads.filesize column to bigint (#14334)
This is necessary to allow for large file uploads via the direct S3 upload mechanism, as we convert the external file to an Upload record via ExternalUploadManager once it is complete. This will allow for files larger than 2,147,483,647 bytes (2.14GB) to be referenced in the uploads table. This is a table locking migration, but since it is not as highly trafficked as posts, topics, or users, the disruption should be minimal.
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class ChangeUploadsFilesizeToBigint < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
change_column :uploads, :filesize, :bigint
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user