discourse/db/migrate/20240909121255_rebake_user_onebox.rb
Alan Guo Xiang Tan 9f12dd28f9
DEV: Promote historic post_deploy migrations (#34273)
This commit promotes all post_deploy migrations which existed in
Discourse v3.4.0 (timestamp <= 20241023041126)
2025-08-13 14:10:50 +08:00

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