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:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-08-20 21:42:06 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-08-20 21:42:06 +0300
commit6e4e1050d9dba2b7b2523fdd1768823ab85feef4 (patch)
tree78be5963ec075d80116a932011d695dd33910b4e /scripts/prepare_postgres_fdw.sh
parent1ce776de4ae122aba3f349c02c17cebeaa8ecf07 (diff)
Add latest changes from gitlab-org/gitlab@13-3-stable-ee
Diffstat (limited to 'scripts/prepare_postgres_fdw.sh')
-rwxr-xr-xscripts/prepare_postgres_fdw.sh15
1 files changed, 0 insertions, 15 deletions
diff --git a/scripts/prepare_postgres_fdw.sh b/scripts/prepare_postgres_fdw.sh
deleted file mode 100755
index 246f3acc569..00000000000
--- a/scripts/prepare_postgres_fdw.sh
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/usr/bin/env bash
-
-psql -h postgres -U postgres gitlabhq_geo_test <<EOF
-CREATE EXTENSION postgres_fdw;
-CREATE SERVER gitlab_secondary FOREIGN DATA WRAPPER postgres_fdw OPTIONS (host 'localhost', dbname 'gitlabhq_test');
-CREATE USER MAPPING FOR current_user SERVER gitlab_secondary OPTIONS (user 'postgres', password '');
-CREATE SCHEMA gitlab_secondary;
-IMPORT FOREIGN SCHEMA public FROM SERVER gitlab_secondary INTO gitlab_secondary;
-GRANT USAGE ON FOREIGN SERVER gitlab_secondary TO current_user;
-EOF
-
-# Ensure the FDW setting is enabled
-sed -i '/fdw:/d' config/database_geo.yml
-sed -i '/gitlabhq_geo_test/a\
-\ \ fdw: true' config/database_geo.yml