6 lines
375 B
SQL
6 lines
375 B
SQL
-- One document view (decided 2026-10-20): "Unterlagen" merges into the
|
|
-- Dokumentenablage. The tenant's own documents that staff kept as Unterlagen
|
|
-- become internal documents of the store, with their ids and product links;
|
|
-- BreakPilot's deliveries stay area NULL and show as "Von BreakPilot".
|
|
UPDATE documents SET area = 'internal' WHERE area IS NULL AND own_document;
|