Skip to content

Commit

Permalink
ci: 12
Browse files Browse the repository at this point in the history
  • Loading branch information
waitingsong committed Jan 13, 2025
1 parent 61262f5 commit ec960db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .scripts/ci/ci-init-db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ echo $DBUSER_PWD

pwd
psql -h $POSTGRES_HOST -p $POSTGRES_PORT -U$POSTGRES_USER -d $POSTGRES_DB -c "SHOW TIMEZONE;"
psql -h $POSTGRES_HOST -p $POSTGRES_PORT -U$POSTGRES_USER -d $POSTGRES_DB -f $cwd/.scripts/ci/init.sql/init.sql
psql -h $POSTGRES_HOST -p $POSTGRES_PORT -U$POSTGRES_USER -c "\du+;"
psql -h $POSTGRES_HOST -p $POSTGRES_PORT -U$POSTGRES_USER -d $POSTGRES_DB -f $cwd/.scripts/ci/init.sql
# psql -h $POSTGRES_HOST -p $POSTGRES_PORT -U$POSTGRES_USER -c "SELECT usename, usecreatedb, usesuper, userepl, usebypassrls, valuntil, useconfig FROM pg_catalog.pg_user;"
echo 11
echo -e "\n"
Expand Down
1 change: 1 addition & 0 deletions .scripts/ci/init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ ALTER DEFAULT PRIVILEGES IN SCHEMA pgmq GRANT SELECT ON TABLES TO dbuser;
GRANT INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA pgmq TO dbuser;
ALTER DEFAULT PRIVILEGES IN SCHEMA pgmq GRANT INSERT, UPDATE, DELETE ON TABLES TO dbuser;
GRANT EXECUTE ON ALL FUNCTIONS IN SCHEMA pgmq TO dbuser;
\du+;

0 comments on commit ec960db

Please sign in to comment.