discourse/db/post_migrate/20240909121255_rebake_user_onebox.rb
David Taylor 7d8974d02f
UX: Upgrade to fontawesome 6.6.0 (#28778)
This upgrade is designed to be fully backwards-compatible. Any icon names which have changed will be automatically remapped to the new name. For now, this will happen silently. In future, once core & official themes/plugins have been updated, we will start raising deprecation errors to help theme/plugin authors update their code.

Extracted from https://github.com/discourse/discourse/pull/28715

Announcement at https://meta.discourse.org/t/were-upgrading-our-icons-to-font-awesome-6/325349

Co-authored-by: awesomerobot <kris.aubuchon@discourse.org>
2024-09-09 14:40:56 +01:00

15 lines
312 B
Ruby

# frozen_string_literal: true
class RebakeUserOnebox < ActiveRecord::Migration[7.1]
def up
# Rebake user onebox posts for fontawesome6 upgrade
execute <<~SQL
UPDATE posts SET baked_version = 0
WHERE cooked LIKE '%d-icon-map-marker-alt%'
SQL
end
def down
# do nothing
end
end