mirror of
https://github.com/immich-app/immich.git
synced 2026-02-12 11:58:15 +03:00
turn it off and back on
This commit is contained in:
@@ -24,6 +24,9 @@ export class AddFaceSearchRelation1718486162779 implements MigrationInterface {
|
||||
|
||||
await queryRunner.query(`ALTER TABLE asset_faces DROP COLUMN "embedding"`);
|
||||
|
||||
await queryRunner.query(`ALTER TABLE face_search ALTER COLUMN embedding SET DATA TYPE real[]`);
|
||||
await queryRunner.query(`ALTER TABLE face_search ALTER COLUMN embedding SET DATA TYPE vector(512)`);
|
||||
|
||||
await queryRunner.query(`
|
||||
CREATE INDEX face_index ON face_search
|
||||
USING hnsw (embedding vector_cosine_ops)
|
||||
|
||||
Reference in New Issue
Block a user