mirror of
https://github.com/immich-app/immich.git
synced 2026-05-28 01:42:34 -04:00
chore: upgrade sql-tools (#27885)
This commit is contained in:
@@ -33,20 +33,20 @@ import { ASSET_CHECKSUM_CONSTRAINT } from 'src/utils/database';
|
||||
name: ASSET_CHECKSUM_CONSTRAINT,
|
||||
columns: ['ownerId', 'checksum'],
|
||||
unique: true,
|
||||
where: '("libraryId" IS NULL)',
|
||||
where: '"libraryId" IS NULL',
|
||||
})
|
||||
@Index({
|
||||
columns: ['ownerId', 'libraryId', 'checksum'],
|
||||
unique: true,
|
||||
where: '("libraryId" IS NOT NULL)',
|
||||
where: '"libraryId" IS NOT NULL',
|
||||
})
|
||||
@Index({
|
||||
name: 'asset_localDateTime_idx',
|
||||
expression: `(("localDateTime" at time zone 'UTC')::date)`,
|
||||
expression: `("localDateTime" at time zone 'UTC')::date`,
|
||||
})
|
||||
@Index({
|
||||
name: 'asset_localDateTime_month_idx',
|
||||
expression: `(date_trunc('MONTH'::text, ("localDateTime" AT TIME ZONE 'UTC'::text)) AT TIME ZONE 'UTC'::text)`,
|
||||
expression: `date_trunc('MONTH'::text, ("localDateTime" AT TIME ZONE 'UTC'::text)) AT TIME ZONE 'UTC'::text`,
|
||||
})
|
||||
@Index({ columns: ['originalPath', 'libraryId'] })
|
||||
@Index({ columns: ['id', 'stackId'] })
|
||||
|
||||
Reference in New Issue
Block a user