Files
mDMS/infra/paperless/migrate-apply-2026-05-13.log
m 2aa532e717 chore: initial commit — spinout from m/otto
Spun out mDMS strategy + tooling from m/otto into its own repo on 2026-05-15.

Migrated:
- docs/strategy.md (was: m/otto:docs/mdms-strategy.md)
- infra/paperless/ (config + audit + migrate scripts)
- infra/samba-canon/ (Canon MB5100 SMB1 bridge container)

History in m/otto: issues #429–#438. Going forward, all mDMS issues
file here. Sibling m/paperless (separate repo) remains the bare
Docker Compose for Paperless-ngx itself.
2026-05-15 17:31:20 +02:00

369 lines
16 KiB
Plaintext

/tmp/migrate_types.py:240: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
audit_path = f"/tmp/migrate_types_audit_{datetime.datetime.utcnow().strftime('%Y%m%dT%H%M%S')}.json"
/tmp/migrate_types.py:242: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
"ts_utc": datetime.datetime.utcnow().isoformat() + "Z",
loaded 73 types, 195 docs
all 10 target types verified
=== PLAN ===
document moves: 171
types to delete (after moves): 63
types NOT mapped + nonzero docs (need manual call): 0
=== MOVES SUMMARY (per target type) ===
-> Contract (+23 docs)
7 from Vertrag
6 from Versicherungsschein
1 from agreement
1 from contract
1 from Finanzierungsangebot
1 from Kreditvertrag
1 from Loan Application and Agreement
1 from Notarial Deed
1 from Notarized agreement with amendments
1 from Rechtsgeschäft
1 from Versicherungsbedingungen
1 from Vertragsdokument
-> Information (+96 docs)
21 from Bescheinigung
21 from Brief
17 from Bescheid
7 from Mitteilung
3 from Wohnflaechenberechnung
2 from Einladung zur Eigentümerversammlung
2 from Leistungsnachweis
2 from Medizinisch
2 from Steuererklärung
1 from Angebot
1 from Antrag
1 from Behandlungsplan und Risikoaufklärung
1 from Beratungsprotokoll
1 from Berechnung
1 from Bericht
1 from Bestätigungsbrief
1 from Energy Performance Certificate
1 from Erklarung
1 from Guidelines
1 from Gutachten
1 from informational document
1 from Informationsschreiben
1 from Medical Consent Form
1 from medical documentation
1 from Rechnungs- und Vertragsinformation
1 from Schreiben des Finanzamts
1 from Verwaltungsakt
1 from Werbung
-> Invoice (+52 docs)
26 from Rechnung
11 from Abrechnung
6 from Umsatzsteuer-Voranmeldung
4 from Lohnsteuerbescheinigung
1 from Kontoauszug
1 from Kontoübersicht
1 from Kostenabrechnung
1 from Kostenvoranmeldung
1 from Mahnschreiben
=== TYPES TO DELETE (after moves) ===
id= 4 count= 11 name='Abrechnung'
id=160 count= 1 name='agreement'
id= 13 count= 1 name='Angebot'
id=134 count= 1 name='Antrag'
id=141 count= 1 name='Behandlungsplan und Risikoaufklärung'
id=129 count= 1 name='Beratungsprotokoll'
id=143 count= 1 name='Berechnung'
id=148 count= 1 name='Bericht'
id= 11 count= 17 name='Bescheid'
id= 15 count= 21 name='Bescheinigung'
id=151 count= 1 name='Bestätigungsbrief'
id= 30 count= 21 name='Brief'
id=127 count= 0 name='Consent Form'
id=144 count= 1 name='contract'
id=120 count= 0 name='Einladung / Vollmacht / Wirtschaftsplan'
id=113 count= 2 name='Einladung zur Eigentümerversammlung'
id=132 count= 0 name='Einspruchsschreiben'
id=158 count= 1 name='Energy Performance Certificate'
id=128 count= 1 name='Erklarung'
id=156 count= 1 name='Finanzierungsangebot'
id=122 count= 0 name='Geldzuwendungsbestätigung'
id=157 count= 1 name='Guidelines'
id= 27 count= 1 name='Gutachten'
id=136 count= 1 name='informational document'
id=139 count= 1 name='Informationsschreiben'
id=137 count= 0 name='Kaufvertrag'
id=118 count= 1 name='Kontoauszug'
id=117 count= 1 name='Kontoübersicht'
id=145 count= 1 name='Kostenabrechnung'
id=121 count= 1 name='Kostenvoranmeldung'
id=142 count= 1 name='Kreditvertrag'
id=114 count= 0 name='Kundeninformation'
id= 83 count= 2 name='Leistungsnachweis'
id=135 count= 1 name='Loan Application and Agreement'
id= 66 count= 4 name='Lohnsteuerbescheinigung'
id=147 count= 1 name='Mahnschreiben'
id=140 count= 1 name='Medical Consent Form'
id=150 count= 1 name='medical documentation'
id= 41 count= 2 name='Medizinisch'
id= 12 count= 7 name='Mitteilung'
id=161 count= 1 name='Notarial Deed'
id=159 count= 1 name='Notarized agreement with amendments'
id=133 count= 0 name='Plan'
id=131 count= 0 name='policy'
id=116 count= 0 name='Questionnaire/Declaration Form'
id= 2 count= 26 name='Rechnung'
id=149 count= 1 name='Rechnungs- und Vertragsinformation'
id=125 count= 0 name='Rechtlicher Vertrag'
id=155 count= 1 name='Rechtsgeschäft'
id=126 count= 0 name='recommendation'
id=152 count= 1 name='Schreiben des Finanzamts'
id=119 count= 0 name='Steuerdokument'
id=115 count= 2 name='Steuererklärung'
id=124 count= 0 name='Tilgungsplan'
id= 88 count= 6 name='Umsatzsteuer-Voranmeldung'
id=130 count= 1 name='Versicherungsbedingungen'
id= 67 count= 6 name='Versicherungsschein'
id= 40 count= 7 name='Vertrag'
id=153 count= 1 name='Vertragsdokument'
id=154 count= 1 name='Verwaltungsakt'
id=146 count= 1 name='Werbung'
id= 73 count= 0 name='Wohnflächenberechnung'
id=123 count= 3 name='Wohnflaechenberechnung'
audit trail written: /tmp/migrate_types_audit_20260513T085119.json
=== APPLY ===
[OK ] doc 104: 'Abrechnung' -> 'Invoice'
[OK ] doc 124: 'Abrechnung' -> 'Invoice'
[OK ] doc 88: 'Abrechnung' -> 'Invoice'
[OK ] doc 134: 'Abrechnung' -> 'Invoice'
[OK ] doc 122: 'Abrechnung' -> 'Invoice'
[OK ] doc 71: 'Abrechnung' -> 'Invoice'
[OK ] doc 220: 'Abrechnung' -> 'Invoice'
[OK ] doc 223: 'Abrechnung' -> 'Invoice'
[OK ] doc 224: 'Abrechnung' -> 'Invoice'
[OK ] doc 255: 'Abrechnung' -> 'Invoice'
[OK ] doc 248: 'Abrechnung' -> 'Invoice'
[OK ] doc 200: 'agreement' -> 'Contract'
[OK ] doc 222: 'Angebot' -> 'Information'
[OK ] doc 98: 'Antrag' -> 'Information'
[OK ] doc 91: 'Behandlungsplan und Risikoaufklärung' -> 'Information'
[OK ] doc 228: 'Beratungsprotokoll' -> 'Information'
[OK ] doc 202: 'Berechnung' -> 'Information'
[OK ] doc 96: 'Bericht' -> 'Information'
[OK ] doc 160: 'Bescheid' -> 'Information'
[OK ] doc 95: 'Bescheid' -> 'Information'
[OK ] doc 86: 'Bescheid' -> 'Information'
[OK ] doc 159: 'Bescheid' -> 'Information'
[OK ] doc 183: 'Bescheid' -> 'Information'
[OK ] doc 101: 'Bescheid' -> 'Information'
[OK ] doc 81: 'Bescheid' -> 'Information'
[OK ] doc 69: 'Bescheid' -> 'Information'
[OK ] doc 70: 'Bescheid' -> 'Information'
[OK ] doc 85: 'Bescheid' -> 'Information'
[OK ] doc 236: 'Bescheid' -> 'Information'
[OK ] doc 253: 'Bescheid' -> 'Information'
[OK ] doc 250: 'Bescheid' -> 'Information'
[OK ] doc 233: 'Bescheid' -> 'Information'
[OK ] doc 234: 'Bescheid' -> 'Information'
[OK ] doc 235: 'Bescheid' -> 'Information'
[OK ] doc 76: 'Bescheid' -> 'Information'
[OK ] doc 260: 'Bescheinigung' -> 'Information'
[OK ] doc 182: 'Bescheinigung' -> 'Information'
[OK ] doc 100: 'Bescheinigung' -> 'Information'
[OK ] doc 178: 'Bescheinigung' -> 'Information'
[OK ] doc 166: 'Bescheinigung' -> 'Information'
[OK ] doc 192: 'Bescheinigung' -> 'Information'
[OK ] doc 75: 'Bescheinigung' -> 'Information'
[OK ] doc 179: 'Bescheinigung' -> 'Information'
[OK ] doc 186: 'Bescheinigung' -> 'Information'
[OK ] doc 168: 'Bescheinigung' -> 'Information'
[OK ] doc 262: 'Bescheinigung' -> 'Information'
[OK ] doc 261: 'Bescheinigung' -> 'Information'
[OK ] doc 259: 'Bescheinigung' -> 'Information'
[OK ] doc 242: 'Bescheinigung' -> 'Information'
[OK ] doc 239: 'Bescheinigung' -> 'Information'
[OK ] doc 245: 'Bescheinigung' -> 'Information'
[OK ] doc 252: 'Bescheinigung' -> 'Information'
[OK ] doc 219: 'Bescheinigung' -> 'Information'
[OK ] doc 205: 'Bescheinigung' -> 'Information'
[OK ] doc 247: 'Bescheinigung' -> 'Information'
[OK ] doc 230: 'Bescheinigung' -> 'Information'
[OK ] doc 152: 'Bestätigungsbrief' -> 'Information'
[OK ] doc 244: 'Brief' -> 'Information'
[OK ] doc 164: 'Brief' -> 'Information'
[OK ] doc 146: 'Brief' -> 'Information'
[OK ] doc 169: 'Brief' -> 'Information'
[OK ] doc 191: 'Brief' -> 'Information'
[OK ] doc 105: 'Brief' -> 'Information'
[OK ] doc 188: 'Brief' -> 'Information'
[OK ] doc 115: 'Brief' -> 'Information'
[OK ] doc 97: 'Brief' -> 'Information'
[OK ] doc 196: 'Brief' -> 'Information'
[OK ] doc 74: 'Brief' -> 'Information'
[OK ] doc 113: 'Brief' -> 'Information'
[OK ] doc 102: 'Brief' -> 'Information'
[OK ] doc 126: 'Brief' -> 'Information'
[OK ] doc 195: 'Brief' -> 'Information'
[OK ] doc 110: 'Brief' -> 'Information'
[OK ] doc 170: 'Brief' -> 'Information'
[OK ] doc 180: 'Brief' -> 'Information'
[OK ] doc 116: 'Brief' -> 'Information'
[OK ] doc 127: 'Brief' -> 'Information'
[OK ] doc 149: 'Brief' -> 'Information'
[OK ] doc 227: 'contract' -> 'Contract'
[OK ] doc 156: 'Einladung zur Eigentümerversammlung' -> 'Information'
[OK ] doc 119: 'Einladung zur Eigentümerversammlung' -> 'Information'
[OK ] doc 163: 'Energy Performance Certificate' -> 'Information'
[OK ] doc 251: 'Erklarung' -> 'Information'
[OK ] doc 217: 'Finanzierungsangebot' -> 'Contract'
[OK ] doc 154: 'Guidelines' -> 'Information'
[OK ] doc 158: 'Gutachten' -> 'Information'
[OK ] doc 218: 'informational document' -> 'Information'
[OK ] doc 185: 'Informationsschreiben' -> 'Information'
[OK ] doc 189: 'Kontoauszug' -> 'Invoice'
[OK ] doc 187: 'Kontoübersicht' -> 'Invoice'
[OK ] doc 121: 'Kostenabrechnung' -> 'Invoice'
[OK ] doc 107: 'Kostenvoranmeldung' -> 'Invoice'
[OK ] doc 212: 'Kreditvertrag' -> 'Contract'
[OK ] doc 256: 'Leistungsnachweis' -> 'Information'
[OK ] doc 241: 'Leistungsnachweis' -> 'Information'
[OK ] doc 214: 'Loan Application and Agreement' -> 'Contract'
[OK ] doc 167: 'Lohnsteuerbescheinigung' -> 'Invoice'
[OK ] doc 254: 'Lohnsteuerbescheinigung' -> 'Invoice'
[OK ] doc 258: 'Lohnsteuerbescheinigung' -> 'Invoice'
[OK ] doc 249: 'Lohnsteuerbescheinigung' -> 'Invoice'
[OK ] doc 80: 'Mahnschreiben' -> 'Invoice'
[OK ] doc 138: 'Medical Consent Form' -> 'Information'
[OK ] doc 136: 'medical documentation' -> 'Information'
[OK ] doc 135: 'Medizinisch' -> 'Information'
[OK ] doc 197: 'Medizinisch' -> 'Information'
[OK ] doc 109: 'Mitteilung' -> 'Information'
[OK ] doc 144: 'Mitteilung' -> 'Information'
[OK ] doc 181: 'Mitteilung' -> 'Information'
[OK ] doc 111: 'Mitteilung' -> 'Information'
[OK ] doc 150: 'Mitteilung' -> 'Information'
[OK ] doc 184: 'Mitteilung' -> 'Information'
[OK ] doc 108: 'Mitteilung' -> 'Information'
[OK ] doc 206: 'Notarial Deed' -> 'Contract'
[OK ] doc 203: 'Notarized agreement with amendments' -> 'Contract'
[OK ] doc 151: 'Rechnung' -> 'Invoice'
[OK ] doc 90: 'Rechnung' -> 'Invoice'
[OK ] doc 93: 'Rechnung' -> 'Invoice'
[OK ] doc 92: 'Rechnung' -> 'Invoice'
[OK ] doc 161: 'Rechnung' -> 'Invoice'
[OK ] doc 140: 'Rechnung' -> 'Invoice'
[OK ] doc 132: 'Rechnung' -> 'Invoice'
[OK ] doc 155: 'Rechnung' -> 'Invoice'
[OK ] doc 73: 'Rechnung' -> 'Invoice'
[OK ] doc 162: 'Rechnung' -> 'Invoice'
[OK ] doc 94: 'Rechnung' -> 'Invoice'
[OK ] doc 78: 'Rechnung' -> 'Invoice'
[OK ] doc 143: 'Rechnung' -> 'Invoice'
[OK ] doc 106: 'Rechnung' -> 'Invoice'
[OK ] doc 72: 'Rechnung' -> 'Invoice'
[OK ] doc 193: 'Rechnung' -> 'Invoice'
[OK ] doc 194: 'Rechnung' -> 'Invoice'
[OK ] doc 139: 'Rechnung' -> 'Invoice'
[OK ] doc 165: 'Rechnung' -> 'Invoice'
[OK ] doc 133: 'Rechnung' -> 'Invoice'
[OK ] doc 173: 'Rechnung' -> 'Invoice'
[OK ] doc 148: 'Rechnung' -> 'Invoice'
[OK ] doc 147: 'Rechnung' -> 'Invoice'
[OK ] doc 141: 'Rechnung' -> 'Invoice'
[OK ] doc 142: 'Rechnung' -> 'Invoice'
[OK ] doc 231: 'Rechnung' -> 'Invoice'
[OK ] doc 175: 'Rechnungs- und Vertragsinformation' -> 'Information'
[OK ] doc 213: 'Rechtsgeschäft' -> 'Contract'
[OK ] doc 79: 'Schreiben des Finanzamts' -> 'Information'
[OK ] doc 246: 'Steuererklärung' -> 'Information'
[OK ] doc 77: 'Steuererklärung' -> 'Information'
[OK ] doc 257: 'Umsatzsteuer-Voranmeldung' -> 'Invoice'
[OK ] doc 237: 'Umsatzsteuer-Voranmeldung' -> 'Invoice'
[OK ] doc 238: 'Umsatzsteuer-Voranmeldung' -> 'Invoice'
[OK ] doc 240: 'Umsatzsteuer-Voranmeldung' -> 'Invoice'
[OK ] doc 243: 'Umsatzsteuer-Voranmeldung' -> 'Invoice'
[OK ] doc 204: 'Umsatzsteuer-Voranmeldung' -> 'Invoice'
[OK ] doc 229: 'Versicherungsbedingungen' -> 'Contract'
[OK ] doc 129: 'Versicherungsschein' -> 'Contract'
[OK ] doc 112: 'Versicherungsschein' -> 'Contract'
[OK ] doc 130: 'Versicherungsschein' -> 'Contract'
[OK ] doc 128: 'Versicherungsschein' -> 'Contract'
[OK ] doc 226: 'Versicherungsschein' -> 'Contract'
[OK ] doc 131: 'Versicherungsschein' -> 'Contract'
[OK ] doc 118: 'Vertrag' -> 'Contract'
[OK ] doc 199: 'Vertrag' -> 'Contract'
[OK ] doc 87: 'Vertrag' -> 'Contract'
[OK ] doc 89: 'Vertrag' -> 'Contract'
[OK ] doc 232: 'Vertrag' -> 'Contract'
[OK ] doc 123: 'Vertrag' -> 'Contract'
[OK ] doc 190: 'Vertrag' -> 'Contract'
[OK ] doc 177: 'Vertragsdokument' -> 'Contract'
[OK ] doc 82: 'Verwaltungsakt' -> 'Information'
[OK ] doc 176: 'Werbung' -> 'Information'
[OK ] doc 216: 'Wohnflaechenberechnung' -> 'Information'
[OK ] doc 201: 'Wohnflaechenberechnung' -> 'Information'
[OK ] doc 207: 'Wohnflaechenberechnung' -> 'Information'
[DEL] type 4 'Abrechnung' resp=''
[DEL] type 160 'agreement' resp=''
[DEL] type 13 'Angebot' resp=''
[DEL] type 134 'Antrag' resp=''
[DEL] type 141 'Behandlungsplan und Risikoaufklärung' resp=''
[DEL] type 129 'Beratungsprotokoll' resp=''
[DEL] type 143 'Berechnung' resp=''
[DEL] type 148 'Bericht' resp=''
[DEL] type 11 'Bescheid' resp=''
[DEL] type 15 'Bescheinigung' resp=''
[DEL] type 151 'Bestätigungsbrief' resp=''
[DEL] type 30 'Brief' resp=''
[DEL] type 127 'Consent Form' resp=''
[DEL] type 144 'contract' resp=''
[DEL] type 120 'Einladung / Vollmacht / Wirtschaftsplan' resp=''
[DEL] type 113 'Einladung zur Eigentümerversammlung' resp=''
[DEL] type 132 'Einspruchsschreiben' resp=''
[DEL] type 158 'Energy Performance Certificate' resp=''
[DEL] type 128 'Erklarung' resp=''
[DEL] type 156 'Finanzierungsangebot' resp=''
[DEL] type 122 'Geldzuwendungsbestätigung' resp=''
[DEL] type 157 'Guidelines' resp=''
[DEL] type 27 'Gutachten' resp=''
[DEL] type 136 'informational document' resp=''
[DEL] type 139 'Informationsschreiben' resp=''
[DEL] type 137 'Kaufvertrag' resp=''
[DEL] type 118 'Kontoauszug' resp=''
[DEL] type 117 'Kontoübersicht' resp=''
[DEL] type 145 'Kostenabrechnung' resp=''
[DEL] type 121 'Kostenvoranmeldung' resp=''
[DEL] type 142 'Kreditvertrag' resp=''
[DEL] type 114 'Kundeninformation' resp=''
[DEL] type 83 'Leistungsnachweis' resp=''
[DEL] type 135 'Loan Application and Agreement' resp=''
[DEL] type 66 'Lohnsteuerbescheinigung' resp=''
[DEL] type 147 'Mahnschreiben' resp=''
[DEL] type 140 'Medical Consent Form' resp=''
[DEL] type 150 'medical documentation' resp=''
[DEL] type 41 'Medizinisch' resp=''
[DEL] type 12 'Mitteilung' resp=''
[DEL] type 161 'Notarial Deed' resp=''
[DEL] type 159 'Notarized agreement with amendments' resp=''
[DEL] type 133 'Plan' resp=''
[DEL] type 131 'policy' resp=''
[DEL] type 116 'Questionnaire/Declaration Form' resp=''
[DEL] type 2 'Rechnung' resp=''
[DEL] type 149 'Rechnungs- und Vertragsinformation' resp=''
[DEL] type 125 'Rechtlicher Vertrag' resp=''
[DEL] type 155 'Rechtsgeschäft' resp=''
[DEL] type 126 'recommendation' resp=''
[DEL] type 152 'Schreiben des Finanzamts' resp=''
[DEL] type 119 'Steuerdokument' resp=''
[DEL] type 115 'Steuererklärung' resp=''
[DEL] type 124 'Tilgungsplan' resp=''
[DEL] type 88 'Umsatzsteuer-Voranmeldung' resp=''
[DEL] type 130 'Versicherungsbedingungen' resp=''
[DEL] type 67 'Versicherungsschein' resp=''
[DEL] type 40 'Vertrag' resp=''
[DEL] type 153 'Vertragsdokument' resp=''
[DEL] type 154 'Verwaltungsakt' resp=''
[DEL] type 146 'Werbung' resp=''
[DEL] type 73 'Wohnflächenberechnung' resp=''
[DEL] type 123 'Wohnflaechenberechnung' resp=''
done.