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
path: root/db
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-02-04 00:09:17 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-02-04 00:09:17 +0300
commita1ed241c8212fe848501de9d561796ed6879307f (patch)
treef4cd88555f3e9be61e498761c7a289260135c806 /db
parent174343966742d2f4b87ac84f9ce4ee576cb9d75e (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20210203092540_remove_has_external_wiki_constraint.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/db/migrate/20210203092540_remove_has_external_wiki_constraint.rb b/db/migrate/20210203092540_remove_has_external_wiki_constraint.rb
index f76163b9f8a..80b0cc11685 100644
--- a/db/migrate/20210203092540_remove_has_external_wiki_constraint.rb
+++ b/db/migrate/20210203092540_remove_has_external_wiki_constraint.rb
@@ -9,7 +9,9 @@ class RemoveHasExternalWikiConstraint < ActiveRecord::Migration[6.0]
def up
# This reverts the following migration: add_not_null_constraint :projects, :has_external_wiki, validate: false
- remove_not_null_constraint :projects, :has_external_wiki
+ if check_not_null_constraint_exists?(:projects, :has_external_wiki)
+ remove_not_null_constraint :projects, :has_external_wiki
+ end
end
def down