Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore conns on DB first #192

Merged
merged 1 commit into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
pg_easy_replicate (0.3.6)
pg_easy_replicate (0.3.7)
ougai (~> 2.0.0)
pg (~> 1.5.3)
pg_query (~> 5.1.0)
Expand Down
10 changes: 5 additions & 5 deletions lib/pg_easy_replicate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,11 @@ def cleanup(options)
logger.info("Dropping groups table")
Group.drop
end,
-> do
if options[:restore_connection_on_source_db]
restore_connections_on_source_db
end
end,
-> do
if options[:everything]
logger.info("Dropping schema")
Expand Down Expand Up @@ -213,11 +218,6 @@ def cleanup(options)
end
end
end,
-> do
if options[:restore_connection_on_source_db]
restore_connections_on_source_db
end
end,
]

cleanup_steps.each do |step|
Expand Down
2 changes: 1 addition & 1 deletion lib/pg_easy_replicate/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module PgEasyReplicate
VERSION = "0.3.6"
VERSION = "0.3.7"
end
Loading