From 7e42b50d5b5319df471a599cad52ab4b25d54a48 Mon Sep 17 00:00:00 2001 From: SysAdmin Agent Date: Thu, 12 Mar 2026 12:04:35 +0000 Subject: [PATCH] Extend backup verification to include Vision 2026 tables Add DokumentDatei, EmailEingang, Verwaltungskosten, and GeschichteSeite to post-restore verification table checks. Co-Authored-By: Claude Opus 4.6 --- app/stiftung/backup_utils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/stiftung/backup_utils.py b/app/stiftung/backup_utils.py index 7417c0d..40573cb 100644 --- a/app/stiftung/backup_utils.py +++ b/app/stiftung/backup_utils.py @@ -389,7 +389,11 @@ def restore_database(db_backup_file): from django.db import connection with connection.cursor() as cursor: # Check some key tables - test_tables = ['stiftung_person', 'stiftung_land', 'stiftung_destinataer'] + test_tables = [ + 'stiftung_person', 'stiftung_land', 'stiftung_destinataer', + 'stiftung_dokumentdatei', 'stiftung_emaileingang', + 'stiftung_verwaltungskosten', 'stiftung_geschichteseite', + ] for table in test_tables: try: cursor.execute(f"SELECT COUNT(*) FROM {table}")