mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Trigger is dropped along with the table.
This commit is contained in:
@@ -49,7 +49,6 @@ class TableMigrationHelper
|
||||
ActiveRecord::Base.exec_sql("DROP TABLE IF EXISTS #{old_name}")
|
||||
|
||||
ActiveRecord::Base.exec_sql <<~SQL
|
||||
DROP TRIGGER IF EXISTS #{readonly_trigger_name(old_name)} ON #{old_name};
|
||||
DROP FUNCTION IF EXISTS #{readonly_function_name(old_name)} CASCADE;
|
||||
SQL
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user