Skip to content

High performance self-hosted photo and video management solution.

chore: bump sql-tools (#31000)

Jason Rasmussen13562d80a477
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 131aaa27dc..4cba3b7fea 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -407,8 +407,8 @@ importers:
specifier: workspace:*
version: link:../packages/plugin-sdk
'@immich/sql-tools':
- specifier: ^0.5.1
- version: 0.5.2
+ specifier: ^0.6.3
+ version: 0.6.3
'@nestjs/bullmq':
specifier: ^11.0.1
@@ -646,7 +646,7 @@ importers:
devDependencies:
'@eslint/js':
specifier: ^10.0.0
'@nestjs/cli':
specifier: ^11.0.2
@@ -733,19 +733,19 @@ importers:
'@vitest/coverage-v8':
specifier: ^4.0.0
eslint:
specifier: ^10.0.0
eslint-config-prettier:
specifier: ^10.1.8
eslint-plugin-prettier:
specifier: ^5.1.3
eslint-plugin-unicorn:
specifier: ^73.0.0
globals:
specifier: ^17.0.0
version: 17.11.0
@@ -778,16 +778,16 @@ importers:
version: '@typescript/[email protected]'
typescript-eslint:
specifier: ^8.28.0
unplugin-swc:
specifier: ^1.4.5
vite-tsconfig-paths:
specifier: ^6.0.0
vitest:
specifier: ^3.0.0
web:
dependencies:
@@ -3115,8 +3115,8 @@ packages:
'@immich/[email protected]':
resolution: {integrity: sha512-fpcQ7zPhP3Cp1bEXhONVYSUeIANa2uzaQFGKufUZQo5FO7aFT77szTVChhlCy4XaVy5R4ZvgSkA/1TJmeORz7Q==}
- '@immich/[email protected]':
- resolution: {integrity: sha512-O1SJ+BbeFVsUTF4af1MfagJZM+lPgLjI8lQ3SZNjpo8SGJReSbUl2ii03OKuGni/G0yp2GnRLpOTNSHYGtVrcg==}
+ '@immich/[email protected]':
+ resolution: {integrity: sha512-I51fFDxSdvlxyMqmzYvWFP1tSe/EON2xLNNu4hbCF3IIccO0VohY3T7dJJFdRuCJznDjp7Ijr/kFjOnjYVRiWQ==}
hasBin: true
'@immich/[email protected]':
@@ -6603,10 +6603,6 @@ packages:
resolution: {integrity: sha512-/rFeCpNJQbhSZjGVwO9RFV3xPqbnERS8MmIQzCtD/zl6gpJuV/bMLuN92oG3F7d8oDEHHRrujSXNUr8fpjntKw==}
engines: {node: '>=18'}
- resolution: {integrity: sha512-H+y0Jo/T1RZ9qPP4Eh1pkcQcLRglraJaSLoyOtHxu6AapkjWVCy2Sit1QQ4x3Dng8qDlSsZEet7g5Pq06MvTgw==}
- engines: {node: '>=20'}
-
resolution: {integrity: sha512-z67u4ZhzCL/Tydu1lJARtEZYWbWaN7oYLHbsuzocr6y4N6WZAagG3RQ4FW61V1/0+jImpj293XfrcYnd1qxtPg==}
engines: {node: '>=22.12.0'}
@@ -8932,6 +8928,10 @@ packages:
resolution: {integrity: sha512-nbD8lB9EB3wNdMhOCdx5Li8DxnLbvKByylRLcJ1h+4SkrowVeECAyZlyiKMThF7xFdRz0jSQ2MoJr+wXux2y0Q==}
engines: {node: '>=20.0.0'}
+ resolution: {integrity: sha512-ooa+eSbBNPTo3MycPEuW5jdrxQdQwdtB3LC3h43FiXQbIry5tR0C5lDG7eealK0E4D7XjrnOP5DIUg/LyjRMYQ==}
+ engines: {node: '>=22.0.0'}
+
resolution: {integrity: sha512-KvNT4XqAMzdcL6ka6Tl3i2lYeFDgXNCuIX+xNx6ZMVR1dFq+idXd9FLKNMOIx0t9mJ9/HudyX4oZWXZQ0UJHeg==}
engines: {node: '>=14.16'}
@@ -15651,6 +15651,11 @@ snapshots:
'@esbuild/[email protected]':
optional: true
+ dependencies:
+ eslint-visitor-keys: 3.4.3
+
dependencies:
@@ -15679,6 +15684,10 @@ snapshots:
mdn-data: 2.29.0
source-map-js: 1.2.1
+ optionalDependencies:
+
optionalDependencies:
@@ -15921,12 +15930,12 @@ snapshots:
'@immich/[email protected]': {}
- '@immich/[email protected]':
+ '@immich/[email protected]':
dependencies:
- commander: 14.0.3
+ commander: 15.0.0
graph-data-structure: 4.5.0
- kysely: 0.28.17
- kysely-postgres-js: 3.0.0([email protected])([email protected])
+ kysely: 0.29.5
+ kysely-postgres-js: 3.0.0([email protected])([email protected])
pg-connection-string: 2.14.0
postgres: 3.4.9
@@ -18385,6 +18394,22 @@ snapshots:
dependencies:
'@types/yargs-parser': 21.0.3
+ dependencies:
+ '@eslint-community/regexpp': 4.12.2
+ '@typescript-eslint/scope-manager': 8.67.0
+ '@typescript-eslint/type-utils': 8.67.0(@typescript/[email protected])([email protected]([email protected])([email protected]))([email protected])
+ '@typescript-eslint/visitor-keys': 8.67.0
+ ignore: 7.0.6
+ natural-compare: 1.4.0
+ ts-api-utils: 2.5.0(@typescript/[email protected])
+ typescript: '@typescript/[email protected]'
+ transitivePeerDependencies:
+ - supports-color
+
dependencies:
'@eslint-community/regexpp': 4.12.2
@@ -18401,6 +18426,18 @@ snapshots:
transitivePeerDependencies:
- supports-color
+ dependencies:
+ '@typescript-eslint/scope-manager': 8.67.0
+ '@typescript-eslint/types': 8.67.0
+ '@typescript-eslint/typescript-estree': 8.67.0(@typescript/[email protected])([email protected])
+ '@typescript-eslint/visitor-keys': 8.67.0
+ debug: 4.4.3([email protected])
+ typescript: '@typescript/[email protected]'
+ transitivePeerDependencies:
+ - supports-color
+
dependencies:
'@typescript-eslint/scope-manager': 8.67.0
@@ -18431,6 +18468,18 @@ snapshots:
dependencies:
typescript: '@typescript/[email protected]'
+ dependencies:
+ '@typescript-eslint/types': 8.67.0
+ '@typescript-eslint/typescript-estree': 8.67.0(@typescript/[email protected])([email protected])
+ debug: 4.4.3([email protected])
+ ts-api-utils: 2.5.0(@typescript/[email protected])
+ typescript: '@typescript/[email protected]'
+ transitivePeerDependencies:
+ - supports-color
+
dependencies:
'@typescript-eslint/types': 8.67.0
@@ -18460,6 +18509,17 @@ snapshots:
transitivePeerDependencies:
- supports-color
+ dependencies:
+ '@eslint-community/eslint-utils': 4.10.1([email protected]([email protected])([email protected]))
+ '@typescript-eslint/scope-manager': 8.67.0
+ '@typescript-eslint/types': 8.67.0
+ '@typescript-eslint/typescript-estree': 8.67.0(@typescript/[email protected])([email protected])
+ typescript: '@typescript/[email protected]'
+ transitivePeerDependencies:
+ - supports-color
+
dependencies:
'@eslint-community/eslint-utils': 4.10.1([email protected]([email protected])([email protected]))
@@ -18551,7 +18611,7 @@ snapshots:
dependencies:
valibot: 1.4.2(@typescript/[email protected])
dependencies:
'@bcoe/v8-coverage': 1.0.2
'@vitest/utils': 4.1.11
@@ -18563,7 +18623,7 @@ snapshots:
obug: 2.1.4
std-env: 4.2.0
tinyrainbow: 3.1.1
dependencies:
@@ -18577,7 +18637,7 @@ snapshots:
obug: 2.1.4
std-env: 4.2.0
tinyrainbow: 3.1.1
'@vitest/[email protected]':
dependencies:
@@ -18596,13 +18656,13 @@ snapshots:
chai: 6.2.2
tinyrainbow: 3.1.1
dependencies:
'@vitest/spy': 3.2.7
estree-walker: 3.0.3
magic-string: 0.30.21
optionalDependencies:
dependencies:
@@ -19536,8 +19596,6 @@ snapshots:
-
@@ -20600,6 +20658,10 @@ snapshots:
+ dependencies:
+
dependencies:
@@ -20632,6 +20694,16 @@ snapshots:
lodash.memoize: 4.1.2
semver: 7.8.5
+ dependencies:
+ prettier: 3.9.6
+ prettier-linter-helpers: 1.0.1
+ synckit: 0.11.13
+ optionalDependencies:
+ '@types/eslint': 9.6.1
+ eslint-config-prettier: 10.1.8([email protected]([email protected])([email protected]))
+
dependencies:
@@ -20660,6 +20732,30 @@ snapshots:
transitivePeerDependencies:
- ts-node
+ dependencies:
+ '@eslint-community/eslint-utils': 4.10.1([email protected]([email protected])([email protected]))
+ '@eslint/css-tree': 4.0.5
+ browserslist: 4.28.6
+ change-case: 5.4.4
+ ci-info: 4.4.0
+ core-js-compat: 3.49.0
+ detect-indent: 7.0.2
+ entities: 4.5.0
+ find-up-simple: 1.0.1
+ globals: 17.11.0
+ indent-string: 5.0.0
+ is-builtin-module: 5.0.0
+ is-identifier: 1.1.0
+ pluralize: 8.0.0
+ quote-js-string: 0.1.0
+ regjsparser: 0.13.2
+ reserved-identifiers: 1.2.0
+ semver: 7.8.5
+ strip-indent: 4.1.1
+ yaml: 2.9.0
+
dependencies:
'@eslint-community/eslint-utils': 4.10.1([email protected]([email protected])([email protected]))
@@ -20707,6 +20803,43 @@ snapshots:
+ dependencies:
+ '@eslint-community/eslint-utils': 4.10.1([email protected]([email protected])([email protected]))
+ '@eslint-community/regexpp': 4.12.2
+ '@eslint/config-array': 0.23.5([email protected])
+ '@eslint/config-helpers': 0.7.0
+ '@eslint/core': 1.2.1
+ '@eslint/plugin-kit': 0.7.2
+ '@humanfs/node': 0.16.8
+ '@humanwhocodes/module-importer': 1.0.1
+ '@humanwhocodes/retry': 0.4.3
+ '@types/estree': 1.0.9
+ ajv: 6.15.0
+ cross-spawn: 7.0.6
+ debug: 4.4.3([email protected])
+ escape-string-regexp: 4.0.0
+ eslint-scope: 9.1.2
+ eslint-visitor-keys: 5.0.1
+ espree: 11.2.0
+ esquery: 1.7.0
+ esutils: 2.0.3
+ fast-deep-equal: 3.1.3
+ file-entry-cache: 8.0.0
+ find-up: 5.0.0
+ glob-parent: 6.0.2
+ ignore: 5.3.2
+ imurmurhash: 0.1.4
+ is-glob: 4.0.3
+ json-stable-stringify-without-jsonify: 1.0.1
+ minimatch: 10.2.6
+ natural-compare: 1.4.0
+ optionator: 0.9.4
+ optionalDependencies:
+ jiti: 1.21.7
+ transitivePeerDependencies:
+ - supports-color
+
dependencies:
'@eslint-community/eslint-utils': 4.10.1([email protected]([email protected])([email protected]))
@@ -22283,8 +22416,16 @@ snapshots:
optionalDependencies:
postgres: 3.4.9
+ dependencies:
+ kysely: 0.29.5
+ optionalDependencies:
+ postgres: 3.4.9
+
+
dependencies:
package-json: 8.1.1
@@ -26225,6 +26366,17 @@ snapshots:
+ dependencies:
+ '@typescript-eslint/typescript-estree': 8.67.0(@typescript/[email protected])([email protected])
+ typescript: '@typescript/[email protected]'
+ transitivePeerDependencies:
+ - supports-color
+
dependencies:
@@ -26379,12 +26531,12 @@ snapshots:
dependencies:
'@rollup/pluginutils': 5.4.0([email protected])
'@swc/core': 1.16.1(@swc/[email protected])
load-tsconfig: 0.2.5
transitivePeerDependencies:
- '@farmfe/core'
- '@rspack/core'
@@ -26396,7 +26548,7 @@ snapshots:
- vite
- webpack
dependencies:
'@jridgewell/remapping': 2.3.5
picomatch: 4.0.7
@@ -26405,7 +26557,7 @@ snapshots:
esbuild: 0.28.2
rolldown: 1.2.5
rollup: 4.62.0
@@ -26527,13 +26679,13 @@ snapshots:
- '@types/node'
- rollup
dependencies:
cac: 6.7.14
debug: 4.4.3([email protected])
es-module-lexer: 1.7.0
pathe: 2.0.3
transitivePeerDependencies:
- '@types/node'
- jiti
@@ -26548,17 +26700,17 @@ snapshots:
- tsx
- yaml
dependencies:
debug: 4.4.3([email protected])
globrex: 0.1.2
tsconfck: 3.1.6(@typescript/[email protected])
transitivePeerDependencies:
- supports-color
- typescript
dependencies:
esbuild: 0.28.2
fdir: 6.5.0([email protected])
@@ -26569,8 +26721,25 @@ snapshots:
optionalDependencies:
'@types/node': 24.13.3
fsevents: 2.3.3
- jiti: 2.7.0
+ jiti: 1.21.7
+ lightningcss: 1.33.0
+ sass: 1.102.0
+ terser: 5.49.0
+ tsx: 4.23.12
+ yaml: 2.9.0
+
+ dependencies:
lightningcss: 1.33.0
+ picomatch: 4.0.7
+ postcss: 8.5.26
+ rolldown: 1.2.5
+ tinyglobby: 0.2.17
+ optionalDependencies:
+ '@types/node': 24.13.3
+ esbuild: 0.28.2
+ fsevents: 2.3.3
+ jiti: 1.21.7
sass: 1.102.0
terser: 5.49.0
tsx: 4.23.12
@@ -26601,11 +26770,11 @@ snapshots:
dependencies:
dependencies:
'@types/chai': 5.2.3
'@vitest/expect': 3.2.7
'@vitest/pretty-format': 3.2.7
'@vitest/runner': 3.2.7
'@vitest/snapshot': 3.2.7
@@ -26623,8 +26792,8 @@ snapshots:
tinyglobby: 0.2.17
tinypool: 1.1.1
tinyrainbow: 2.0.0
why-is-node-running: 2.3.0
optionalDependencies:
'@types/debug': 4.1.13
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index 71a80eb969..5a38c1d0aa 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -67,3 +67,4 @@ shamefullyHoist: false
verifyDepsBeforeRun: install
minimumReleaseAgeExclude:
- '@immich/[email protected]'
+ - '@immich/[email protected]'
diff --git a/server/Dockerfile b/server/Dockerfile
index 44b60304c8..3ab487c11e 100644
--- a/server/Dockerfile
+++ b/server/Dockerfile
@@ -39,7 +39,7 @@ RUN --mount=type=cache,id=pnpm,target=/buildcache/pnpm-store \
pnpm --filter immich build && \
pnpm --filter immich --prod --no-optional deploy /output/server-pruned
RUN --mount=type=cache,id=pnpm,target=/buildcache/pnpm-store \
- SHARP_FORCE_GLOBAL_LIBVIPS=true pnpm --dir /output/server-pruned/node_modules/sharp exec npm run build
+ SHARP_FORCE_GLOBAL_LIBVIPS=true pnpm --config.verify-deps-before-run=false --dir /output/server-pruned/node_modules/sharp exec npm run build
FROM sdk AS web
diff --git a/server/package.json b/server/package.json
index 366413bae8..652dfd8543 100644
--- a/server/package.json
+++ b/server/package.json
@@ -38,7 +38,7 @@
"dependencies": {
"@extism/extism": "2.0.0-rc13",
"@immich/plugin-sdk": "workspace:*",
- "@immich/sql-tools": "^0.5.1",
+ "@immich/sql-tools": "^0.6.3",
"@nestjs/bullmq": "^11.0.1",
"@nestjs/common": "^11.0.4",
"@nestjs/core": "^11.0.4",
@@ -147,6 +147,7 @@
"@types/supertest": "^7.0.0",
"@types/ua-parser-js": "^0.7.36",
"@types/validator": "^13.15.2",
+ "@typescript/native": "npm:typescript@^7.0.2",
"@vitest/coverage-v8": "^4.0.0",
"eslint": "^10.0.0",
"eslint-config-prettier": "^10.1.8",
@@ -161,7 +162,6 @@
"supertest": "^7.1.0",
"tailwindcss": "^3.4.0",
"testcontainers": "^12.0.0",
- "@typescript/native": "npm:typescript@^7.0.2",
"typescript": "npm:@typescript/typescript6@^6.0.2",
"typescript-eslint": "^8.28.0",
"unplugin-swc": "^1.4.5",
diff --git a/server/src/schema/migrations/ORDER b/server/src/schema/migrations/ORDER
new file mode 100644
index 0000000000..7d049296aa
--- /dev/null
+++ b/server/src/schema/migrations/ORDER
@@ -0,0 +1,96 @@
+1744910873969-InitialMigration
+1744991379464-AddNotificationsTable
+1745244781846-AddUserAvatarColorColumn
+1745902563899-AddAssetVisibilityColumn
+1746636476623-DropExtraIndexes
+1746768490606-AddUserPincode
+1746844028242-AddLockedVisibilityEnum
+1746987967923-AddPinExpiresAtColumn
+1747329504572-AddNewSessionColumns
+1747338664832-SessionRename
+1747664684909-AddAlbumAuditTables
+1749067526135-UserOnboardingDefault
+1750107668827-PartnerCreateId
+1750189909087-AddAlbumUserCreateFields
+1750323941566-UnsetPrewarmDimParameter
+1750676477029-AlbumAssetUpdateId
+1750694237564-AlbumAssetAuditTable
+1750780093818-AddAlbumToAssetDeleteTrigger
+1751035357937-MemorySyncChanges
+1751304834247-StackSyncChanges
+1751924596408-AddOverrides
+1752004072340-UpdateIndexOverrides
+1752152941084-PeopleAuditTable
+1752161055253-RenameGeodataPKConstraint
+1752161055254-AddActivityAssetFk
+1752169992364-AddIsPendingSyncReset
+1752250924342-UserMetadataSync
+1752267649968-StandardizeNames
+1752759108283-ConvertToAbsolutePaths
+1753104909784-AssetFaceUpdateIdAndAuditTable
+1753464178233-RenameApiKeyPermissions
+1753471866748-AddSharedLinkSlug
+1753800911775-ProfileImageCheckpointRemoval
+1754389095885-ResetAlbumAssetSync
+1756318797207-AssetMetadataTables
+1758705774125-CreateAssetOCRTable
+1758705789125-CreateOCRSearchTable
+1758705804128-UpsertOcrAssetJobStatus
+1761078763279-AddAppVersionColumnToSession
+1761755618862-FixColumnNames
+1762297277677-AddPluginAndWorkflowTables
+1764483051488-OCRBigramsForCJK
+1764698859174-SidecarInAssetFile
+1764705680041-ChangeWorkflowTableColumnsName
+1764957138636-AddLockedPropertiesToAssetExif
+1768336661963-AddAssetWidthHeight
+1768336671610-CreateAssetEditTable
+1768336694315-CreateIsVisibleColumns
+1768587436457-AddEditCountToAsset
+1768757482271-SwitchToIsEdited
+1768828334807-AddIsEditedToAssetFile
+1768847456553-AddTagsToExif
+1769105700133-AddAssetEditSequence
+1769441657564-AddIsProgressiveColumn
+1769635093204-DropThumbnailJobStatusColumns
+1771478781948-PeopleSearchIndex
+1771535611395-ConvertRating0ToNull
+1771639515206-AddIsTransparentColumn
+1771873044511-ChangesTokensToBuffers
+1771873813973-AssetEditSync
+1772121424533-AddAssetExifGistEarthcoord
+1772129818245-FixStupidWhiteSpace
+1772609167000-UpdateOpusCodecName
+1773242919341-EncodedVideoAssetFiles
+1773956345315-DuplicateSharedLinkAssets
+1774393726320-AssetFaceSyncReset
+1774548649115-AddChecksumAlgorithm.ts
+1775165531374-AddPersonNameTrigramIndex
+1776217577402-DropAuditTable
+1776263790468-DropDeviceIdAndDeviceAssetId
+1776332807985-SetOAuthAllowInsecureRequests
+1776442031775-AddOauthSidToSession
+1776792304485-ReconcileSqlToolsUpgradeChanges
+1776848612954-MigrateAlbumOwnerIdToAlbumUser
+1777415973792-AddVideoStreamTables
+1777654048096-CreateAudioVideoTables
+1777667825574-ChangeDurationToInteger
+1777897107000-PartnerAssetSyncReset
+1778614946174-UpdateWorkflowTables
+1779806699547-AddPluginTemplates
+1780435471692-DeleteMismatchedAssetFaces
+1780592070031-ConvertNegativeRatingToNull
+1780592071031-AssetOcrSync
+1781089983296-CreateIntegrityReportTable
+1782414436633-AddPluginMethodAllowedHosts
+1782500000000-RestoreLivePhotoStillVisibility
+1784647658615-AddOAuthBearerTokenToSession
+1784836013770-MinFacePreferenceMigration
+1784986754473-ConvertUserPasswordEmptyStringToNull
+1784986754474-AlbumDescriptionNullable
+1786385711807-AlbumOwnerDeleteTrigger
+1786741078327-AddWorkflowLogsTable
+1786972746371-AssetOcrUpdatedAtTrigger
+1786972746372-AssetOcrSyncReset
+1787148183729-ClusterGroups
+1787148183730-DeleteMismatchedMemoryAssets