mirror of
https://github.com/Art051/immich.git
synced 2025-08-11 19:29:00 +00:00
15 lines
472 B
TypeScript
15 lines
472 B
TypeScript
import { MigrationInterface, QueryRunner } from "typeorm";
|
|
|
|
export class AddExifCityIndex1701665867595 implements MigrationInterface {
|
|
name = 'AddExifCityIndex1701665867595'
|
|
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`CREATE INDEX "exif_city" ON "exif" ("city") `);
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`DROP INDEX "public"."exif_city"`);
|
|
}
|
|
|
|
}
|