mirror of
https://github.com/immich-app/immich.git
synced 2025-06-23 15:30:51 -04:00
13 lines
435 B
TypeScript
13 lines
435 B
TypeScript
import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
|
|
export class RemoveNplFromSystemConfig1730227312171 implements MigrationInterface {
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`
|
|
update system_metadata
|
|
set value = value #- '{ffmpeg,npl}'
|
|
where key = 'system-config' and value->'ffmpeg'->'npl' is not null`);
|
|
}
|
|
|
|
public async down(): Promise<void> {}
|
|
}
|