From 14fb03145d2039784036543a3ddd9a5a3bac937d Mon Sep 17 00:00:00 2001 From: sarthaksavvy Date: Mon, 7 Oct 2024 14:08:46 +0530 Subject: [PATCH] [docker-db-update] update docker pgsql database name and password on .env.example file and on pgsql extension script file --- .env.example | 4 ++-- docker/psql/extensions.sh | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.env.example b/.env.example index 5293fce2..accef838 100644 --- a/.env.example +++ b/.env.example @@ -22,9 +22,9 @@ LOG_LEVEL=debug DB_CONNECTION=pgsql DB_HOST=127.0.0.1 DB_PORT=5432 -DB_DATABASE=larachain +DB_DATABASE=laralamma DB_USERNAME=postgres -DB_PASSWORD= +DB_PASSWORD=secret SESSION_DRIVER=database SESSION_LIFETIME=120 diff --git a/docker/psql/extensions.sh b/docker/psql/extensions.sh index 3db4442c..6b84440e 100644 --- a/docker/psql/extensions.sh +++ b/docker/psql/extensions.sh @@ -5,13 +5,13 @@ set -e # Perform all actions as $POSTGRES_USER export PGUSER="$POSTGRES_USER" -# Create the 'template_postgis' template db +# Create the 'laralamma' template db "${psql[@]}" <<- 'EOSQL' -CREATE DATABASE template_postgis IS_TEMPLATE true; +CREATE DATABASE laralamma IS_TEMPLATE true; EOSQL # Load PostGIS into both template_database and $POSTGRES_DB -for DB in template_postgis "$POSTGRES_DB"; do +for DB in laralamma "$POSTGRES_DB"; do echo "Loading PostGIS extensions into $DB" "${psql[@]}" --dbname="$DB" <<-'EOSQL' CREATE EXTENSION IF NOT EXISTS postgis;