mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-02-10 18:05:07 +08:00
[sql] Make PostgreSQL schema scripts search_path-agnostic
This commit is contained in:
5
.github/workflows/postgreDatabaseTests.yml
vendored
5
.github/workflows/postgreDatabaseTests.yml
vendored
@ -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"
|
||||
|
||||
Reference in New Issue
Block a user