[sql] Make PostgreSQL schema scripts search_path-agnostic

This commit is contained in:
Sergey Konovalov
2025-08-25 14:13:53 +03:00
parent 8ee59496c6
commit 8dff329455
3 changed files with 12 additions and 11 deletions

View File

@ -37,12 +37,13 @@ jobs:
- name: Creating service DB configuration
run: |
echo '{"services": {"CoAuthoring": {"sql": {"dbHost": "127.0.0.1"}}}}' >> Common/config/local.json
echo '{"services": {"CoAuthoring": {"sql": {"dbHost": "127.0.0.1", "pgPoolExtraOptions": {"options": "-c search_path=ci_test"}}}}}' >> Common/config/local.json
- name: Creating schema
run: |
docker exec postgres psql -d onlyoffice -U onlyoffice -c "CREATE SCHEMA IF NOT EXISTS ci_test;"
docker cp ./schema/postgresql/createdb.sql postgres:/
docker exec postgres psql -d onlyoffice -U onlyoffice -a -f /createdb.sql
docker exec postgres bash -c 'PGOPTIONS="-c search_path=ci_test" psql -d onlyoffice -U onlyoffice -a -f /createdb.sql'
- name: Run Jest
run: npm run "integration database tests"