mirror of
https://github.com/immich-app/immich.git
synced 2025-12-03 03:35:20 -05:00
* refactor: database repository * fix error reindex check * chore: remove WIP code --------- Co-authored-by: mertalev <101130780+mertalev@users.noreply.github.com>
22 lines
408 B
SQL
22 lines
408 B
SQL
-- NOTE: This file is auto generated by ./sql-generator
|
|
|
|
-- DatabaseRepository.getExtensionVersion
|
|
SELECT
|
|
default_version as "availableVersion",
|
|
installed_version as "installedVersion"
|
|
FROM
|
|
pg_available_extensions
|
|
WHERE
|
|
name = $1
|
|
|
|
-- DatabaseRepository.getPostgresVersion
|
|
SHOW server_version
|
|
|
|
-- DatabaseRepository.shouldReindex
|
|
SELECT
|
|
idx_status
|
|
FROM
|
|
pg_vector_index_stat
|
|
WHERE
|
|
indexname = $1
|