A platform for community discussion. Free, open, simple.
FIX: Re-run remove flag and queued post web hook migrations.
Alan Guo Xiang Tand2a04621862a
diff --git a/db/migrate/20200514075356_remove_flag_web_hooks.rb b/db/migrate/20201218000000_remove_flag_web_hooks.rbsimilarity index 91%rename from db/migrate/20200514075356_remove_flag_web_hooks.rbrename to db/migrate/20201218000000_remove_flag_web_hooks.rbindex 448b7fb771b..82cfe095ad7 100644--- a/db/migrate/20200514075356_remove_flag_web_hooks.rb+++ b/db/migrate/20201218000000_remove_flag_web_hooks.rb@@ -4,12 +4,12 @@ class RemoveFlagWebHooks < ActiveRecord::Migration[6.0]def upflag_event_type_id = 7- DB.exec <<~SQL+ execute <<~SQLDELETE FROM web_hook_event_types_hooksWHERE web_hook_event_type_id = #{flag_event_type_id}SQL- DB.exec <<~SQL+ execute <<~SQLDELETE FROM web_hook_event_typesWHERE id = #{flag_event_type_id}SQLdiff --git a/db/migrate/20200514075407_remove_queued_post_web_hooks.rb b/db/migrate/20201218000001_remove_queued_post_web_hooks.rbsimilarity index 91%rename from db/migrate/20200514075407_remove_queued_post_web_hooks.rbrename to db/migrate/20201218000001_remove_queued_post_web_hooks.rbindex 632e5013dc9..835054ef819 100644--- a/db/migrate/20200514075407_remove_queued_post_web_hooks.rb+++ b/db/migrate/20201218000001_remove_queued_post_web_hooks.rb@@ -4,12 +4,12 @@ class RemoveQueuedPostWebHooks < ActiveRecord::Migration[6.0]def upqueued_post_event_type_id = 8- DB.exec <<~SQL+ execute <<~SQLDELETE FROM web_hook_event_types_hooksWHERE web_hook_event_type_id = #{queued_post_event_type_id}SQL- DB.exec <<~SQL+ execute <<~SQLDELETE FROM web_hook_event_typesWHERE id = #{queued_post_event_type_id}SQL