Skip to content

Commit

Permalink
fix: drop policies before re-creating them
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieu-foucault committed Mar 3, 2020
1 parent 469d19e commit 20e07a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openshift/deploy/job/graphile-worker-schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ objects:
set -e;
export DATABASE_URL="postgres://$PGUSER:$PGPASSWORD@$PGHOST:$PGPORT/$PGDATABASE";
yarn graphile-worker --schema-only;
psql -d $PGDATABASE -c "drop policy if exists jobs_policy on graphile_worker.jobs;";
psql -d $PGDATABASE -c "drop policy if exists job_queues_policy on graphile_worker.job_queues;";
psql -d $PGDATABASE -c "create policy jobs_policy on graphile_worker.jobs for all to $APP_USER using (true);";
psql -d $PGDATABASE -c "create policy job_queues_policy on graphile_worker.job_queues for all to $APP_USER using (true);";
env:
Expand Down

0 comments on commit 20e07a4

Please sign in to comment.