mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
feat: UserMetadata sync (#19882)
* feat: UserMetadata sync * refactor: sync table filters (#19887)
This commit is contained in:
parent
9e48ae3052
commit
df581cc0d5
20 changed files with 653 additions and 50 deletions
|
|
@ -216,3 +216,16 @@ export const person_delete_audit = registerFunction({
|
|||
RETURN NULL;
|
||||
END`,
|
||||
});
|
||||
|
||||
export const user_metadata_audit = registerFunction({
|
||||
name: 'user_metadata_audit',
|
||||
returnType: 'TRIGGER',
|
||||
language: 'PLPGSQL',
|
||||
body: `
|
||||
BEGIN
|
||||
INSERT INTO user_metadata_audit ("userId", "key")
|
||||
SELECT "userId", "key"
|
||||
FROM OLD;
|
||||
RETURN NULL;
|
||||
END`,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue