Added relation sharing table.

This commit is contained in:
DebaucheryLibrarian
2026-11-26 00:24:20 +01:00
parent bf6adf4ef1
commit 450f91c0d2
2 changed files with 47 additions and 1 deletions
+1 -1
View File
@@ -480,7 +480,7 @@ async function storeScenes(releases, useBatchId) {
language_alpha2 = COALESCE(new.language_alpha2, releases.language_alpha2),
comment = COALESCE(NULLIF(new.comment, ''), releases.comment),
attributes = COALESCE(releases.attributes::jsonb || new.attributes::jsonb, new.attributes::jsonb, releases.attributes::jsonb), -- new keys overwrite stored ones
deep = new.url IS NOT NULL,
deep = releases.deep OR new.deep,
deep_url = COALESCE(NULLIF(new.deep_url, ''), releases.deep_url),
updated_at = NOW()
FROM json_to_recordset(:scenes)