GitLab steht wegen Wartungsarbeiten am Montag, den 10. Mai, zwischen 17:00 und 19:00 Uhr nicht zur Verfügung.

Commit 5040b725 authored by Robert Speicher's avatar Robert Speicher Committed by GitLab Release Tools Bot

Merge branch...

Merge branch 'ce-11099-removing-the-project-that-holds-the-insights-configuration-raises-an-error' into 'master'

Add remove_foreign_key_if_exists

See merge request gitlab-org/gitlab-ce!28172

(cherry picked from commit 7b7416d9)

24eff5e0 Add remove_foreign_key_if_exists
parent 77cec14e
......@@ -905,6 +905,12 @@ def replace_sql(column, pattern, replacement)
end
end
def remove_foreign_key_if_exists(*args)
if foreign_key_exists?(*args)
remove_foreign_key(*args)
end
end
def remove_foreign_key_without_error(*args)
remove_foreign_key(*args)
rescue ArgumentError
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment