1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-01-17 14:18:24 +01:00

[ticket/16939] Use ALTER SYSTEM queries to modify psql config variables

PHPBB3-16939
This commit is contained in:
Marc Alexander 2021-12-12 09:39:14 +01:00
parent 710aa10905
commit 6801f7949f
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

@ -564,8 +564,8 @@ jobs:
}
[System.Environment]::SetEnvironmentVariable('PATH',$Env:PATH+";${env:PGBIN}")
$env:PGPASSWORD = 'root'
psql -c hot_standby=on
psql -c wal_level=minimal
psql -c 'ALTER SYSTEM SET hot_standby = on;' -U postgres
psql -c 'ALTER SYSTEM SET wal_level = minimal;' -U postgres
psql -c 'DROP DATABASE IF EXISTS phpbb_tests;' -U postgres
psql -c 'create database phpbb_tests;' -U postgres
Set-MpPreference -ExclusionPath "${env:PGDATA}" # Exclude PGDATA directory from Windows Defender