Merge branch 'kb_development' into upstream-20231021

This commit is contained in:
KMY 2023-10-22 14:42:08 +09:00
commit b992e673c7
25 changed files with 667 additions and 114 deletions

View file

@ -0,0 +1,21 @@
# frozen_string_literal: true
require Rails.root.join('lib', 'mastodon', 'migration_helpers')
class RemoveRemoteUriFromLocalCustomEmojis < ActiveRecord::Migration[7.0]
include Mastodon::MigrationHelpers
disable_ddl_transaction!
class CustomEmoji < ApplicationRecord; end
def up
safety_assured do
CustomEmoji.transaction do
CustomEmoji.where(domain: nil).update_all(image_remote_url: nil, uri: nil) # rubocop:disable Rails/SkipsModelValidations
end
end
end
def down; end
end

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.0].define(version: 2023_10_09_235215) do
ActiveRecord::Schema[7.0].define(version: 2023_10_21_005339) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"