fixing update of migration

This commit is contained in:
Cayo Puigdefabregas 2021-11-12 22:24:23 +01:00
parent d41be86297
commit fb5286648d
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ def upgrade():
ac_id = ac.id
revoke_id = ac.action_id
trade_id = revokes[revoke_id]
sql_action = f"update {get_inv()}.action set type='Revoke' where type='ConfirmRevoke' and id='{ac_id}'"
sql_action = f"update {get_inv()}.action set type='Revoke' where id='{ac_id}'"
sql_confirm = f"update {get_inv()}.confirm set action_id='{trade_id}' where id='{ac_id}'"
con.execute(sql_action)
con.execute(sql_confirm)