From 0950781e4fe81f918d98bfdd3f10bab39fb78674 Mon Sep 17 00:00:00 2001 From: Agnieszka Rudek <61757744+Blusia@users.noreply.github.com> Date: Tue, 20 Aug 2024 11:51:24 +0200 Subject: [PATCH] #119 - Students search (#123) - add init-unaccent.sql --- .github/workflows/deploy-to-beta-by-push.yml | 2 +- environment/prod/deployment/beta/docker-compose.beta.yml | 1 + environment/prod/deployment/postgres/init-unaccent.sql | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 environment/prod/deployment/postgres/init-unaccent.sql diff --git a/.github/workflows/deploy-to-beta-by-push.yml b/.github/workflows/deploy-to-beta-by-push.yml index d133866..0f71eb8 100644 --- a/.github/workflows/deploy-to-beta-by-push.yml +++ b/.github/workflows/deploy-to-beta-by-push.yml @@ -76,7 +76,7 @@ jobs: username: ${{ secrets.VPS_OVH_BF7EC892_USERNAME }} key: ${{ secrets.VPS_OVH_BF7EC892_SSH_PRIVATE_KEY }} passphrase: ${{ secrets.VPS_OVH_BF7EC892_SSH_PRIVATE_KEY_PASSPHRASE }} - source: "./environment/prod/deployment/beta/*,./environment/prod/deployment/scripts/*" + source: "./environment/prod/deployment/beta/*,./environment/prod/deployment/scripts/*,./environment/prod/deployment/postgres/*" target: ${{ secrets.KEATING_VPS_BETA_APP_PATH }} rm: true diff --git a/environment/prod/deployment/beta/docker-compose.beta.yml b/environment/prod/deployment/beta/docker-compose.beta.yml index a2d420f..5c6e521 100644 --- a/environment/prod/deployment/beta/docker-compose.beta.yml +++ b/environment/prod/deployment/beta/docker-compose.beta.yml @@ -59,6 +59,7 @@ services: timeout: 3s retries: 5 volumes: + - ./environment/prod/deployment/postgres/init-unaccent.sql:/docker-entrypoint-initdb.d/init-unaccent.sql - keating-beta-pgsql-data:/var/lib/postgresql/data networks: - keating-beta diff --git a/environment/prod/deployment/postgres/init-unaccent.sql b/environment/prod/deployment/postgres/init-unaccent.sql new file mode 100644 index 0000000..3e0a409 --- /dev/null +++ b/environment/prod/deployment/postgres/init-unaccent.sql @@ -0,0 +1,2 @@ +-- Enable the unaccent extension +CREATE EXTENSION IF NOT EXISTS unaccent;