Ensure enable timescale command is executed on application database

This commit is contained in:
Alexey Pustovalov 2021-10-14 15:11:50 +02:00
parent c9f95fda05
commit 40a13b98a1
4 changed files with 4 additions and 4 deletions

View File

@ -291,7 +291,7 @@ create_db_schema_postgresql() {
echo "** Creating '${DB_SERVER_DBNAME}' schema in PostgreSQL"
if [ "${ENABLE_TIMESCALEDB,,}" == "true" ]; then
psql_query "CREATE EXTENSION IF NOT EXISTS timescaledb CASCADE;"
psql_query "CREATE EXTENSION IF NOT EXISTS timescaledb CASCADE;" "${DB_SERVER_DBNAME}"
fi
if [ -n "${DB_SERVER_ZBX_PASS}" ]; then

View File

@ -291,7 +291,7 @@ create_db_schema_postgresql() {
echo "** Creating '${DB_SERVER_DBNAME}' schema in PostgreSQL"
if [ "${ENABLE_TIMESCALEDB,,}" == "true" ]; then
psql_query "CREATE EXTENSION IF NOT EXISTS timescaledb CASCADE;"
psql_query "CREATE EXTENSION IF NOT EXISTS timescaledb CASCADE;" "${DB_SERVER_DBNAME}"
fi
if [ -n "${DB_SERVER_ZBX_PASS}" ]; then

View File

@ -291,7 +291,7 @@ create_db_schema_postgresql() {
echo "** Creating '${DB_SERVER_DBNAME}' schema in PostgreSQL"
if [ "${ENABLE_TIMESCALEDB,,}" == "true" ]; then
psql_query "CREATE EXTENSION IF NOT EXISTS timescaledb CASCADE;"
psql_query "CREATE EXTENSION IF NOT EXISTS timescaledb CASCADE;" "${DB_SERVER_DBNAME}"
fi
if [ -n "${DB_SERVER_ZBX_PASS}" ]; then

View File

@ -291,7 +291,7 @@ create_db_schema_postgresql() {
echo "** Creating '${DB_SERVER_DBNAME}' schema in PostgreSQL"
if [ "${ENABLE_TIMESCALEDB,,}" == "true" ]; then
psql_query "CREATE EXTENSION IF NOT EXISTS timescaledb CASCADE;"
psql_query "CREATE EXTENSION IF NOT EXISTS timescaledb CASCADE;" "${DB_SERVER_DBNAME}"
fi
if [ -n "${DB_SERVER_ZBX_PASS}" ]; then