After upgrading SQLAlchemy, use _asdict().items() instead of .items().

pull/5969/head
Akshay Joshi 2023-03-20 16:48:12 +05:30
parent 3ca7bb854f
commit f43b3b0ce5
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ def migrate_connection_params(table_name):
for rows in results:
connection_params = {}
server_id = 0
for key, value in rows.items():
for key, value in rows._asdict().items():
if key == 'id':
server_id = value
# Name is changed from ssl_mode to sslmode