chore(server): remove unused column (#9431)

* chore(server): remove unused column

* fix: broken migrations
This commit is contained in:
Jason Rasmussen 2024-05-13 16:40:16 -04:00 committed by GitHub
parent 1bebc7368c
commit 844f5a16a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 25 additions and 147 deletions

View file

@ -98,20 +98,4 @@ export class ExifEntity {
/* Video info */
@Column({ type: 'float8', nullable: true })
fps?: number | null;
@Index('exif_text_searchable', { synchronize: false })
@Column({
type: 'tsvector',
generatedType: 'STORED',
select: false,
asExpression: `TO_TSVECTOR('english',
COALESCE(make, '') || ' ' ||
COALESCE(model, '') || ' ' ||
COALESCE(orientation, '') || ' ' ||
COALESCE("lensModel", '') || ' ' ||
COALESCE("city", '') || ' ' ||
COALESCE("state", '') || ' ' ||
COALESCE("country", ''))`,
})
exifTextSearchableColumn!: string;
}