Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Nov 24, 2024
1 parent 2baf7bf commit c27eeb9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
1 change: 0 additions & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ jobs:

- name: Continuous Integration
run: npm run ci:postgresql
# Environment variables used by the `client.js` script to create a new PostgreSQL table.
env:
# The hostname used to communicate with the PostgreSQL service container
POSTGRES_HOST: localhost
Expand Down
14 changes: 5 additions & 9 deletions prepare-database-postgresql.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,11 @@ if [ -n "$db_password" ]; then
export PGPASSWORD=$db_password
fi

if [ "$CI" ]; then
echo "⛷️ Skipping database creation in CI environment."
else
# reset database
echo "️😈 Reset database $db_name in local"
dropdb $db_name
# http://www.postgres.cn/docs/15/app-createdb.html
createdb $param --echo --encoding=UTF8 $db_name
fi
# reset database
echo "️😈 Reset database $db_name in local"
dropdb $db_name
# http://www.postgres.cn/docs/15/app-createdb.html
createdb $param --echo --encoding=UTF8 $db_name

# find all sql files and sort
sql_files=$(ls sql/postgresql/*.sql | sort)
Expand Down

0 comments on commit c27eeb9

Please sign in to comment.