feat: updateId uuidv7 column for all entities with updatedAt (#16353)

This commit is contained in:
Zack Pollard 2025-02-27 12:55:22 +00:00 committed by GitHub
parent 128d653fc6
commit 967c69317b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 222 additions and 4 deletions

View file

@ -30,6 +30,10 @@ export class AssetFileEntity {
@UpdateDateColumn({ type: 'timestamptz' })
updatedAt!: Date;
@Index('IDX_asset_files_update_id')
@Column({ type: 'uuid', nullable: false, default: () => 'immich_uuid_v7()' })
updateId?: string;
@Column()
type!: AssetFileType;