Skip to content

Commit

Permalink
feat(infra): added metabase user access right to cloned production db
Browse files Browse the repository at this point in the history
  • Loading branch information
agarbe committed Dec 20, 2024
1 parent 6286c6f commit 7e068f1
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,8 @@ pg_restore --clean --if-exists --no-owner --no-privileges --no-comments \
echo "Running post import sql scripts"
psql --dbname "${DATABASE_URL}" -a -f post_dump_restore_scripts/create_metabase_specific_tables.sql

echo "Granting access rights to metabase user"
psql --dbname "${DATABASE_URL}" -c "GRANT USAGE ON SCHEMA public TO ${METABASE_DB_USER}"
psql --dbname "${DATABASE_URL}" -c "GRANT SELECT on ALL TABLES IN SCHEMA public TO ${METABASE_DB_USER}"

echo 'Metabase production data replication script finished'

0 comments on commit 7e068f1

Please sign in to comment.