Refine board notes, clipping evidence, and case reports

This commit is contained in:
2026-08-22 23:19:46 +02:00
parent 189a98cc64
commit fae5200846
19 changed files with 256 additions and 124 deletions
+6
View File
@@ -0,0 +1,6 @@
ALTER TABLE osint.note_exhibits
ADD COLUMN presentation_kind TEXT NOT NULL DEFAULT 'luggage'
CHECK (presentation_kind IN ('luggage', 'lined_sheet'));
COMMENT ON COLUMN osint.note_exhibits.presentation_kind IS
'Visual presentation of a note exhibit. Notebook tear-outs use lined_sheet; ordinary working notes use luggage.';
+9
View File
@@ -0,0 +1,9 @@
UPDATE osint.exhibits AS exhibit
SET width = 220,
height = 272,
updated_at = NOW()
FROM osint.document_exhibits AS document
WHERE document.exhibit_id = exhibit.id
AND document.capture_kind_id = 'clipping'
AND exhibit.width = 210
AND exhibit.height = 194;
@@ -0,0 +1,13 @@
UPDATE osint.document_exhibits AS document
SET title = document.citation_text
WHERE document.capture_kind_id = 'clipping'
AND BTRIM(document.citation_text) <> ''
AND (
BTRIM(document.title) = ''
OR EXISTS (
SELECT 1
FROM osint.assets AS asset
WHERE asset.id = document.asset_id
AND document.title = asset.original_name
)
);
@@ -0,0 +1,8 @@
UPDATE osint.exhibits AS exhibit
SET height = 220,
updated_at = NOW()
FROM osint.document_exhibits AS document
WHERE document.exhibit_id = exhibit.id
AND document.capture_kind_id = 'clipping'
AND exhibit.width = 220
AND exhibit.height = 272;
@@ -0,0 +1,22 @@
UPDATE osint.exhibits AS exhibit
SET width = 220,
height = 220,
updated_at = NOW()
FROM osint.document_exhibits AS document
WHERE document.exhibit_id = exhibit.id
AND document.capture_kind_id = 'clipping'
AND (exhibit.width <> 220 OR exhibit.height <> 220);
UPDATE osint.document_exhibits AS document
SET title = document.citation_text
WHERE document.capture_kind_id = 'clipping'
AND BTRIM(document.citation_text) <> ''
AND (
BTRIM(document.title) = ''
OR EXISTS (
SELECT 1
FROM osint.assets AS asset
WHERE asset.id = document.asset_id
AND document.title = asset.original_name
)
);
@@ -0,0 +1,8 @@
UPDATE osint.exhibits AS exhibit
SET width = 230,
height = 290,
updated_at = NOW()
FROM osint.document_exhibits AS document
WHERE document.exhibit_id = exhibit.id
AND document.capture_kind_id = 'clipping'
AND (exhibit.width <> 230 OR exhibit.height <> 290);