mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-02 08:13:47 +08:00
This commit promotes all post_deploy migrations which existed in Discourse v3.4.0 (timestamp <= 20241023041126)
14 lines
312 B
Ruby
14 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
|