2023-07-12 00:47:08 -07:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-04-26 14:29:08 -07:00
|
|
|
class AddStorageSchemaVersion < ActiveRecord::Migration[5.2]
|
|
|
|
def change
|
|
|
|
add_column :preview_cards, :image_storage_schema_version, :integer
|
2023-11-06 08:15:48 -08:00
|
|
|
safety_assured do
|
|
|
|
change_table(:accounts, bulk: true) do |t|
|
|
|
|
t.column :avatar_storage_schema_version, :integer
|
|
|
|
t.column :header_storage_schema_version, :integer
|
|
|
|
end
|
|
|
|
end
|
2020-04-26 14:29:08 -07:00
|
|
|
add_column :media_attachments, :file_storage_schema_version, :integer
|
|
|
|
add_column :custom_emojis, :image_storage_schema_version, :integer
|
|
|
|
end
|
|
|
|
end
|