mirror of
https://github.com/samsonjs/immich.git
synced 2026-06-28 05:29:35 +00:00
* refactor(server): tsconfigs * chore: dummy commit * fix: start.sh * chore: restore original entry scripts
13 lines
510 B
TypeScript
13 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"`);
|
|
}
|
|
}
|