ci: clean up after recent exploration.

This commit is contained in:
Robert Sparks 2023-02-02 13:19:37 -06:00
parent ec0f718191
commit 117bb2a5b8
No known key found for this signature in database
GPG key ID: 6E2A6A5775F91318
2 changed files with 6 additions and 12 deletions

View file

@ -1,5 +1,10 @@
#!/bin/bash
set -e
# Adding the extension to the default template is needed to allow the test-suite
# to be run on postgres (see ietf.settings_postgrestest). The test runner always
# makes a fresh test database instance, and since we are bypassing the migration
# framework and using a fixture to set the database structure, there's no reaonable
# way to install the extension as part of the test run.
psql -U django -d template1 -v ON_ERROR_STOP=1 -c 'CREATE EXTENSION IF NOT EXISTS citext;'

View file

@ -4,19 +4,8 @@ set -e
echo "Drop dummy ietf DB if it exists..."
dropdb -U django --if-exists ietf
#echo "Create new ietf DB..."
#createdb -U django ietf
#
#echo "Enable citext extension..."
#psql -U django -d ietf -v ON_ERROR_STOP=1 -c '\x' -c 'CREATE EXTENSION IF NOT EXISTS citext;'
#
#echo "Set schema search path for user django..."
#psql -U django -d ietf -v ON_ERROR_STOP=1 -c '\x' -c 'ALTER USER django set search_path=ietf_utf8,django,public;'
# Extensions and search paths will be loaded from the dump
echo "Import DB dump into ietf..."
pg_restore --clean --if-exists --create -U django -d postgres ietf.dump
#echo "Set schema search path for user django..."
#psql -U django -d ietf -v ON_ERROR_STOP=1 -c '\x' -c 'ALTER USER django set search_path=ietf_utf8,django,public;'
echo "Done!"