mirror of
https://github.com/mastodon/mastodon.git
synced 2025-11-28 10:30:49 +00:00
Separate remote thumbnails into cache/ directory (#36910)
This commit is contained in:
parent
687f3a2a01
commit
1dcf1d2c84
|
|
@ -4,29 +4,30 @@
|
||||||
#
|
#
|
||||||
# Table name: media_attachments
|
# Table name: media_attachments
|
||||||
#
|
#
|
||||||
# id :bigint(8) not null, primary key
|
# id :bigint(8) not null, primary key
|
||||||
# status_id :bigint(8)
|
# blurhash :string
|
||||||
# file_file_name :string
|
# description :text
|
||||||
# file_content_type :string
|
# file_content_type :string
|
||||||
# file_file_size :integer
|
# file_file_name :string
|
||||||
# file_updated_at :datetime
|
# file_file_size :integer
|
||||||
# remote_url :string default(""), not null
|
# file_meta :json
|
||||||
# created_at :datetime not null
|
# file_storage_schema_version :integer
|
||||||
# updated_at :datetime not null
|
# file_updated_at :datetime
|
||||||
# shortcode :string
|
# processing :integer
|
||||||
# type :integer default("image"), not null
|
# remote_url :string default(""), not null
|
||||||
# file_meta :json
|
# shortcode :string
|
||||||
# account_id :bigint(8)
|
# thumbnail_content_type :string
|
||||||
# description :text
|
# thumbnail_file_name :string
|
||||||
# scheduled_status_id :bigint(8)
|
# thumbnail_file_size :integer
|
||||||
# blurhash :string
|
# thumbnail_remote_url :string
|
||||||
# processing :integer
|
# thumbnail_storage_schema_version :integer
|
||||||
# file_storage_schema_version :integer
|
# thumbnail_updated_at :datetime
|
||||||
# thumbnail_file_name :string
|
# type :integer default("image"), not null
|
||||||
# thumbnail_content_type :string
|
# created_at :datetime not null
|
||||||
# thumbnail_file_size :integer
|
# updated_at :datetime not null
|
||||||
# thumbnail_updated_at :datetime
|
# account_id :bigint(8)
|
||||||
# thumbnail_remote_url :string
|
# scheduled_status_id :bigint(8)
|
||||||
|
# status_id :bigint(8)
|
||||||
#
|
#
|
||||||
|
|
||||||
class MediaAttachment < ApplicationRecord
|
class MediaAttachment < ApplicationRecord
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
class AddThumbnailStorageSchemaVersion < ActiveRecord::Migration[8.0]
|
||||||
|
def change
|
||||||
|
add_column :media_attachments, :thumbnail_storage_schema_version, :integer
|
||||||
|
end
|
||||||
|
end
|
||||||
Loading…
Reference in New Issue
Block a user