diff options
author | Nikolay Samokhvalov <gitlab@samokhvalov.com> | 2019-03-05 02:08:14 +0300 |
---|---|---|
committer | Nikolay Samokhvalov <gitlab@samokhvalov.com> | 2019-03-05 02:08:14 +0300 |
commit | 4a3fe333c7e886a907005c3575d640a194bb0270 (patch) | |
tree | a9535291b0fbf026e66183bc56ffae5ca41faa1d | |
parent | cafe2616d8215bf43d634469434ecb42f6e5a2b9 (diff) |
Do not put table name to trigger name
-rw-r--r-- | lib/gitlab/database/migration_helpers.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/database/migration_helpers.rb b/lib/gitlab/database/migration_helpers.rb index ec9a6fd5c58..08894d7939f 100644 --- a/lib/gitlab/database/migration_helpers.rb +++ b/lib/gitlab/database/migration_helpers.rb @@ -781,7 +781,7 @@ module Gitlab # Removes the triggers used for renaming a PostgreSQL column concurrently. def remove_rename_triggers_for_postgresql(table, trigger) execute("DROP TRIGGER IF EXISTS #{trigger} ON #{table}") - execute("DROP FUNCTION IF EXISTS t_#{table}__#{trigger}()") + execute("DROP FUNCTION IF EXISTS #{trigger}()") end # Removes the triggers used for renaming a MySQL column concurrently. |