mirror of
https://github.com/immich-app/immich.git
synced 2025-11-23 16:50:54 +09:00
feat: UserMetadata sync (#19882)
* feat: UserMetadata sync * refactor: sync table filters (#19887)
This commit is contained in:
@@ -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`,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user