This commit is contained in:
Laurent Destailleur 2023-06-26 16:46:57 +02:00
parent 67a7a71641
commit 711efce529

View File

@ -102,7 +102,7 @@ before_install:
if [ "$DB" = 'postgresql' ]; then
echo "Check pgloader version"
pgloader --version
ps fauxww | grep postgres
#ps fauxww | grep postgres
ls /etc/postgresql/13/main/
sudo sed -i -e '/local.*peer/s/postgres/all/' -e 's/peer\|md5/trust/g' /etc/postgresql/13/main/pg_hba.conf
@ -264,6 +264,10 @@ before_script:
sudo pgloader 'mysql://root:password@127.0.0.1/travis' 'postgresql://postgres:postgres@127.0.0.1:5432/travis'
echo 'ALTER SEQUENCE llx_accountingaccount_rowid_seq RENAME TO llx_accounting_account_rowid_seq' | psql 'postgresql://postgres:postgres@127.0.0.1:5432/travis'
echo 'ALTER SEQUENCE llx_accounting_account_rowid_seq RESTART WITH 1000001;' | psql 'postgresql://postgres:postgres@127.0.0.1:5432/travis'
echo '\d llx_bank_account' | psql 'postgresql://postgres:postgres@127.0.0.1:5432/travis'
echo '\d llx_c_departements' | psql 'postgresql://postgres:postgres@127.0.0.1:5432/travis'
# Create pgsql compatibility functions
psql 'postgresql://postgres:postgres@127.0.0.1:5432/travis' < htdocs/install/pgsql/functions/functions.sql
fi