discourse/db/migrate/20250919010400_remove_trigger_on_topic_timers.rb
Alan Guo Xiang Tan a05bb42b85
DEV: Remove unnecessary topic_timers_topic_id_trigger trigger (#34866)
This was causing restores to fail. The trigger is also unnecessary
because the `topic_id` column is already marked as read-only.

Follow-up to eeeb7d302f
2025-09-19 10:14:23 +08:00

11 lines
257 B
Ruby

# frozen_string_literal: true
class RemoveTriggerOnTopicTimers < ActiveRecord::Migration[8.0]
def up
execute("DROP FUNCTION IF EXISTS mirror_topic_timers_topic_id() CASCADE;")
end
def down
raise ActiveRecord::IrreversibleMigration
end
end