martin/tests/initdb-martin.sh
Paul FLORENCE 49942734af
fix: invalid json escaping (#224) (h/t @gbip)
* Fix invalid json escaping

* test: add test for function_source with query params
2021-07-16 12:09:18 +03:00

17 lines
515 B
Bash
Executable File

#!/bin/sh
set -e
# Perform all actions as $POSTGRES_USER
export PGUSER="$POSTGRES_USER"
echo "Loading Martin fixtures into $POSTGRES_DB"
psql --dbname="$POSTGRES_DB" -f /fixtures/TileBBox.sql
psql --dbname="$POSTGRES_DB" -f /fixtures/table_source.sql
psql --dbname="$POSTGRES_DB" -f /fixtures/function_source.sql
psql --dbname="$POSTGRES_DB" -f /fixtures/function_source_query_params.sql
psql --dbname="$POSTGRES_DB" -f /fixtures/points1_source.sql
psql --dbname="$POSTGRES_DB" -f /fixtures/points2_source.sql