Skip to content
Snippets Groups Projects

copy-db-prod-to-test: Fix problems related to the prod-to-test db copy

Merged Anders Harrisson requested to merge andersharrisson/ics-ans-ccce:master into master

copy-db-prod-to-test: Explicitly drop and recreate db on restore Instead of using '--clean' flag for pg_restore, explicitly drop and recreate the database before restoring the dump.

copy-db-prod-to-test: Stop and restart container during db restore To close open sessions to the database, first stop the application container before performing pg_restore. Then restart it afterwards.

JIRA INFRA-8163

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading