mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
chore: migrate version-history repository to kysely (#15267)
* chore: generate sql for version-history repository * chore: run kysely-codegen * chore: migrate version-history repository to kysely * fix: change `| null` to `| undefined` * chore: clean up unneeded async
This commit is contained in:
parent
beb31cebed
commit
cab201270c
4 changed files with 40 additions and 20 deletions
17
server/src/queries/version.history.repository.sql
Normal file
17
server/src/queries/version.history.repository.sql
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
-- NOTE: This file is auto generated by ./sql-generator
|
||||
|
||||
-- VersionHistoryRepository.getAll
|
||||
select
|
||||
*
|
||||
from
|
||||
"version_history"
|
||||
order by
|
||||
"createdAt" desc
|
||||
|
||||
-- VersionHistoryRepository.getLatest
|
||||
select
|
||||
*
|
||||
from
|
||||
"version_history"
|
||||
order by
|
||||
"createdAt" desc
|
||||
Loading…
Add table
Add a link
Reference in a new issue