[backend] update queries to postgres

This commit is contained in:
2025-10-20 17:41:29 +02:00
parent 9f6a88e7f8
commit 8244e2ce5f
3 changed files with 2 additions and 78 deletions
@@ -54,6 +54,7 @@ trait PaginationQuery
if ($keyset->date !== null) {
$qb->addOrderBy($keyset->date, $orderDirection);
}
$qb->addOrderBy($keyset->id, $orderDirection);
$cursor = PaginationCursor::decode($page->cursor);
@@ -305,15 +305,7 @@ final readonly class ImportEngine
}
if (is_string($value)) {
if (strlen($value) === 16) {
$uuid = Uuid::fromBinary($value);
return method_exists($uuid, 'toString')
? $uuid->toString()
: $uuid->toRfc4122();
}
return $value;
return Uuid::fromBinary($value)->toString();
}
return (string) $value;