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 <noreply@anthropic.com>
This commit is contained in:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user