Files
tenant-registry/migrations/0023_store_takes_own_documents.up.sql
T
sharangandClaude Opus 5.5 ad4fe8f3fd
ci / shared (push) Successful in 14s
ci / test (push) Successful in 26m6s
ci / image (push) Successful in 38s
feat(store): Unterlagen merge into the document store (#89)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 18:04:53 +00:00

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;