mirror of
https://github.com/discourse/discourse.git
synced 2024-12-18 16:43:57 +08:00
7d8974d02f
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>
15 lines
312 B
Ruby
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
|