Skip to content

Commit b13ea58

Browse files
authored
Merge pull request #48 from LlmLaraHub/docker-db-update
[docker-db-update]
2 parents 830bb38 + 14fb031 commit b13ea58

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.env.example

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ LOG_LEVEL=debug
2222
DB_CONNECTION=pgsql
2323
DB_HOST=127.0.0.1
2424
DB_PORT=5432
25-
DB_DATABASE=larachain
25+
DB_DATABASE=laralamma
2626
DB_USERNAME=postgres
27-
DB_PASSWORD=
27+
DB_PASSWORD=secret
2828

2929
SESSION_DRIVER=database
3030
SESSION_LIFETIME=120

docker/psql/extensions.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ set -e
55
# Perform all actions as $POSTGRES_USER
66
export PGUSER="$POSTGRES_USER"
77

8-
# Create the 'template_postgis' template db
8+
# Create the 'laralamma' template db
99
"${psql[@]}" <<- 'EOSQL'
10-
CREATE DATABASE template_postgis IS_TEMPLATE true;
10+
CREATE DATABASE laralamma IS_TEMPLATE true;
1111
EOSQL
1212

1313
# Load PostGIS into both template_database and $POSTGRES_DB
14-
for DB in template_postgis "$POSTGRES_DB"; do
14+
for DB in laralamma "$POSTGRES_DB"; do
1515
echo "Loading PostGIS extensions into $DB"
1616
"${psql[@]}" --dbname="$DB" <<-'EOSQL'
1717
CREATE EXTENSION IF NOT EXISTS postgis;

0 commit comments

Comments
 (0)