mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
feat(server): people sync (#19854)
* chore: fix missing usage of deleteType for syncMemoriesV1 * chore: add src path for proper absolute imports in jetbrains * feat: people sync
This commit is contained in:
parent
feff1899ee
commit
b19884d01e
21 changed files with 675 additions and 5 deletions
|
|
@ -203,3 +203,16 @@ export const stacks_delete_audit = registerFunction({
|
|||
RETURN NULL;
|
||||
END`,
|
||||
});
|
||||
|
||||
export const person_delete_audit = registerFunction({
|
||||
name: 'person_delete_audit',
|
||||
returnType: 'TRIGGER',
|
||||
language: 'PLPGSQL',
|
||||
body: `
|
||||
BEGIN
|
||||
INSERT INTO person_audit ("personId", "ownerId")
|
||||
SELECT "id", "ownerId"
|
||||
FROM OLD;
|
||||
RETURN NULL;
|
||||
END`,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue