mirror of
https://github.com/immich-app/immich.git
synced 2025-11-17 20:13:22 -05:00
* refactor: flatten infra folders * fix: database migrations * fix: test related import * fix: github actions workflow * chore: rename schemas to typesense-schemas
14 lines
510 B
TypeScript
14 lines
510 B
TypeScript
import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
|
|
export class AddCLIPEncodeDataColumn1677971458822 implements MigrationInterface {
|
|
name = 'AddCLIPEncodeDataColumn1677971458822';
|
|
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE "smart_info" ADD "clipEmbedding" numeric(20,19) array`);
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE "smart_info" DROP COLUMN "clipEmbedding"`);
|
|
}
|
|
}
|