After upgrading SQLAlchemy, use _asdict().items() instead of .items().
parent
3ca7bb854f
commit
f43b3b0ce5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue