mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
parent
c23c53bf6f
commit
1356468c38
5 changed files with 93 additions and 5 deletions
14
server/src/migrations/1741027685381-ResetMemories.ts
Normal file
14
server/src/migrations/1741027685381-ResetMemories.ts
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import { MigrationInterface, QueryRunner } from 'typeorm';
|
||||
|
||||
export class ResetMemories1741027685381 implements MigrationInterface {
|
||||
name = 'ResetMemories1741027685381';
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`DELETE FROM "memories"`);
|
||||
await queryRunner.query(`DELETE FROM "system_metadata" WHERE "key" = 'memories-state'`);
|
||||
}
|
||||
|
||||
public async down(): Promise<void> {
|
||||
// nothing to do
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue