discourse/plugins/discourse-narrative-bot/db/migrate/20230227050146_update_narra...

14 lines
375 B
Ruby

# frozen_string_literal: true
class UpdateNarrativeBadgeIcons < ActiveRecord::Migration[7.0]
def change
execute <<~SQL
UPDATE badges
SET icon = 'stamp'
WHERE
name IN ('#{DiscourseNarrativeBot::NewUserNarrative::BADGE_NAME}', '#{DiscourseNarrativeBot::AdvancedUserNarrative::BADGE_NAME}')
AND icon = 'fa-certificate'
SQL
end
end