summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-09-14 10:26:13 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-09-14 10:26:13 +0000
commit4588bbc93a7857eb2d031a4f3e0212c0aa46b846 (patch)
tree1c1c9795491b5e6a97a5e8b5f00e4e2dcc99e5a1 /db
parent8236147d0fcb9f4f8c315f895aebc0c8158e2f7d (diff)
downloadgitlab-ce-4588bbc93a7857eb2d031a4f3e0212c0aa46b846.tar.gz
Add latest changes from gitlab-org/gitlab@13-3-stable-ee
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20200515152649_enable_btree_gist_extension.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/db/migrate/20200515152649_enable_btree_gist_extension.rb b/db/migrate/20200515152649_enable_btree_gist_extension.rb
index 686b685fb5d..bd81c921a87 100644
--- a/db/migrate/20200515152649_enable_btree_gist_extension.rb
+++ b/db/migrate/20200515152649_enable_btree_gist_extension.rb
@@ -1,13 +1,15 @@
# frozen_string_literal: true
class EnableBtreeGistExtension < ActiveRecord::Migration[6.0]
+ include Gitlab::Database::MigrationHelpers
+
DOWNTIME = false
def up
- execute 'CREATE EXTENSION IF NOT EXISTS btree_gist'
+ create_extension :btree_gist
end
def down
- execute 'DROP EXTENSION IF EXISTS btree_gist'
+ drop_extension :btree_gist
end
end