Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolay Samokhvalov <gitlab@samokhvalov.com>2019-03-05 02:08:14 +0300
committerNikolay Samokhvalov <gitlab@samokhvalov.com>2019-03-05 02:08:14 +0300
commit4a3fe333c7e886a907005c3575d640a194bb0270 (patch)
treea9535291b0fbf026e66183bc56ffae5ca41faa1d
parentcafe2616d8215bf43d634469434ecb42f6e5a2b9 (diff)
Do not put table name to trigger name
-rw-r--r--lib/gitlab/database/migration_helpers.rb2
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.