mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-02 06:48:58 +08:00
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
11 lines
257 B
Ruby
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
|