[backend/database] Fix emoji type migration for emoji with multiple corresponding drive_file entries

This commit is contained in:
Laura Hausmann 2025-02-17 22:10:01 +01:00
parent a94e1e7130
commit 16d62f6c33
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -22,6 +22,7 @@ namespace Iceshrimp.Backend.Core.Database.Migrations
AND ("drive_file"."webpublicUrl" = "emoji"."publicUrl" AND ("drive_file"."webpublicUrl" = "emoji"."publicUrl"
OR "drive_file"."url" = "emoji"."publicUrl" OR "drive_file"."url" = "emoji"."publicUrl"
) )
LIMIT 1
) )
WHERE "host" IS NULL WHERE "host" IS NULL
AND EXISTS AND EXISTS