Fixed migration

This commit is contained in:
Jonas Linter
2025-11-13 16:25:56 +01:00
parent 0ba70550c9
commit 26c6d3ffbc

View File

@@ -292,7 +292,7 @@ async def _backfill_acked_requests_username(engine: AsyncEngine, config: dict[st
UPDATE acked_requests
SET username = :username
WHERE unique_id IN (
SELECT unique_id FROM reservations WHERE hotel_code = :hotel_id
SELECT md5_unique_id FROM reservations WHERE hotel_code = :hotel_id
)
AND username IS NULL
""")