diff --git a/ereuse_devicehub/migrations/versions/968b79fa7756_upgrade_confirmrevoke.py b/ereuse_devicehub/migrations/versions/968b79fa7756_upgrade_confirmrevoke.py index f1a1603b..cf5455bf 100644 --- a/ereuse_devicehub/migrations/versions/968b79fa7756_upgrade_confirmrevoke.py +++ b/ereuse_devicehub/migrations/versions/968b79fa7756_upgrade_confirmrevoke.py @@ -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)