Fixed an issue where target connection is wrong while checking version compatibility in schema diff.

pull/39/head
Huang, Jun 2021-01-12 15:09:57 +05:30 committed by Akshay Joshi
parent 0fcfe63092
commit 3f089f31a3
1 changed files with 1 additions and 1 deletions

View File

@ -709,7 +709,7 @@ def check_version_compatibility(sid, tid):
tar_server = Server.query.filter_by(id=tid).first()
tar_manager = driver.connection_manager(tar_server.id)
target_conn = src_manager.connection()
target_conn = tar_manager.connection()
if not (src_conn.connected() and target_conn.connected()):
return False, gettext('Server(s) disconnected.')