{
  "backup": "pre-migration.sqlite3",
  "backup_sha256": "7bd31654d06d5879d0df7dba037efc8f8376bf6f91e9ab018114cc3a087e738b",
  "copy_changes": [
    "medication_administrations.relax_legacy_tuple_uniqueness",
    "medikamente.prescription_status",
    "medikamente.prescription_status_source",
    "medikamente.prescription_status_provenance",
    "medikamente.business_revision",
    "medication_public_identity_key"
  ],
  "dry_run": "ok",
  "foreign_keys": 0,
  "idempotency": "ok",
  "integrity": "ok",
  "medication_event_rows": 5,
  "medication_master_rows": 7,
  "migrated_sha256": "0dcc141812b616f9d674c2ea8e80ba1b5cf8322ad1c877fbfabdafc45c4817b9",
  "migration_name": "sprint7c_f_additive_medication_history",
  "prepared_changes": [
    "medication_administrations.relax_legacy_tuple_uniqueness",
    "medikamente.prescription_status",
    "medikamente.prescription_status_source",
    "medikamente.prescription_status_provenance",
    "medikamente.business_revision",
    "medication_public_identity_key"
  ],
  "prepared_legacy_digest": "0121a315347e95aa59a23c04567a515af0f428600ebb4e0dc3deb624f2fc5a28",
  "restore_proof": "restore-proof.sqlite3",
  "restore_proof_sha256": "7bd31654d06d5879d0df7dba037efc8f8376bf6f91e9ab018114cc3a087e738b",
  "restore_proof_status": "ok",
  "schema_version": 7,
  "source_legacy_digest": "0121a315347e95aa59a23c04567a515af0f428600ebb4e0dc3deb624f2fc5a28",
  "table_counts_after": {
    "apple_health_import_files": 203,
    "apple_health_records": 19367,
    "arztbesuche": 2,
    "auswertungen": 1,
    "capture_action_log": 1,
    "capture_attachments": 1,
    "capture_entries": 1,
    "dashboard_schema_migrations": 4,
    "document_candidate_matches": 46,
    "document_candidate_review_events": 0,
    "document_candidates": 46,
    "document_extraction_sections": 311,
    "document_extractions": 35,
    "document_insights": 139,
    "document_media": 0,
    "document_pages": 37,
    "document_processing": 70,
    "document_reconciliation": 70,
    "document_reconciliation_runs": 1,
    "document_review_log": 0,
    "document_section_relations": 6,
    "document_text_versions": 37,
    "document_transfer_staging": 0,
    "dokumente": 70,
    "dokumente_status": 3,
    "ernaehrung": 373,
    "food_enrichment_sources": 1,
    "food_nutrient_enrichment": 28,
    "health_daily_summary": 0,
    "health_document_fts": 19,
    "health_document_fts_config": 1,
    "health_document_fts_content": 19,
    "health_document_fts_data": 8,
    "health_document_fts_docsize": 19,
    "health_document_fts_idx": 6,
    "health_document_fts_meta": 1,
    "health_document_machine_fts": 348,
    "health_document_machine_fts_config": 1,
    "health_document_machine_fts_content": 348,
    "health_document_machine_fts_data": 63,
    "health_document_machine_fts_docsize": 348,
    "health_document_machine_fts_idx": 61,
    "health_document_repeated_fts": 0,
    "health_document_repeated_fts_config": 1,
    "health_document_repeated_fts_content": 0,
    "health_document_repeated_fts_data": 2,
    "health_document_repeated_fts_docsize": 0,
    "health_document_repeated_fts_idx": 0,
    "health_event_periods": 2,
    "health_events": 260,
    "health_insights": 0,
    "health_processing_runs": 5,
    "histamine_food_aliases": 156,
    "histamine_food_rules": 68,
    "korrelationen": 3,
    "lab_reference_policy": 1,
    "laborwerte": 480,
    "laborwerte_staging": 0,
    "low_histamine_experiments": 0,
    "medication_administrations": 5,
    "medication_public_identity_key": 1,
    "medication_schema_meta": 1,
    "medikamente": 7,
    "multimodal_correlation_results": 144,
    "nutrition_action_recommendations": 4,
    "nutrition_composite_product_review": 0,
    "nutrition_correlation_results": 24,
    "nutrition_daily_features": 28,
    "nutrition_daily_summary_v2": 27,
    "nutrition_food_insights": 24,
    "nutrition_histamine_scores": 305,
    "nutrition_item_nutrients": 7798,
    "nutrition_items": 305,
    "nutrition_mapping_action_log": 0,
    "nutrition_mapping_provenance": 0,
    "nutrition_meal_summary": 76,
    "nutrition_review_queue": 29,
    "nutrition_treatment_phase_summary": 2,
    "personal_food_tolerance": 0,
    "personal_observation_checkins": 0,
    "personal_observation_phases": 0,
    "personal_observation_results": 0,
    "personal_observations": 0,
    "report_runs": 161,
    "supplement_intakes": 0,
    "supplement_plans": 0,
    "symptom_log": 22,
    "symptome": 3,
    "sync_state": 250,
    "tagebuch": 71,
    "vitalzeichen": 0
  },
  "table_counts_before": {
    "apple_health_import_files": 203,
    "apple_health_records": 19367,
    "arztbesuche": 2,
    "auswertungen": 1,
    "capture_action_log": 1,
    "capture_attachments": 1,
    "capture_entries": 1,
    "dashboard_schema_migrations": 4,
    "document_candidate_matches": 46,
    "document_candidate_review_events": 0,
    "document_candidates": 46,
    "document_extraction_sections": 311,
    "document_extractions": 35,
    "document_insights": 139,
    "document_media": 0,
    "document_pages": 37,
    "document_processing": 70,
    "document_reconciliation": 70,
    "document_reconciliation_runs": 1,
    "document_review_log": 0,
    "document_section_relations": 6,
    "document_text_versions": 37,
    "document_transfer_staging": 0,
    "dokumente": 70,
    "dokumente_status": 3,
    "ernaehrung": 373,
    "food_enrichment_sources": 1,
    "food_nutrient_enrichment": 28,
    "health_daily_summary": 0,
    "health_document_fts": 19,
    "health_document_fts_config": 1,
    "health_document_fts_content": 19,
    "health_document_fts_data": 8,
    "health_document_fts_docsize": 19,
    "health_document_fts_idx": 6,
    "health_document_fts_meta": 1,
    "health_document_machine_fts": 348,
    "health_document_machine_fts_config": 1,
    "health_document_machine_fts_content": 348,
    "health_document_machine_fts_data": 63,
    "health_document_machine_fts_docsize": 348,
    "health_document_machine_fts_idx": 61,
    "health_document_repeated_fts": 0,
    "health_document_repeated_fts_config": 1,
    "health_document_repeated_fts_content": 0,
    "health_document_repeated_fts_data": 2,
    "health_document_repeated_fts_docsize": 0,
    "health_document_repeated_fts_idx": 0,
    "health_event_periods": 2,
    "health_events": 260,
    "health_insights": 0,
    "health_processing_runs": 5,
    "histamine_food_aliases": 156,
    "histamine_food_rules": 68,
    "korrelationen": 3,
    "lab_reference_policy": 1,
    "laborwerte": 480,
    "laborwerte_staging": 0,
    "low_histamine_experiments": 0,
    "medication_administrations": 5,
    "medikamente": 7,
    "multimodal_correlation_results": 144,
    "nutrition_action_recommendations": 4,
    "nutrition_composite_product_review": 0,
    "nutrition_correlation_results": 24,
    "nutrition_daily_features": 28,
    "nutrition_daily_summary_v2": 27,
    "nutrition_food_insights": 24,
    "nutrition_histamine_scores": 305,
    "nutrition_item_nutrients": 7798,
    "nutrition_items": 305,
    "nutrition_mapping_action_log": 0,
    "nutrition_mapping_provenance": 0,
    "nutrition_meal_summary": 76,
    "nutrition_review_queue": 29,
    "nutrition_treatment_phase_summary": 2,
    "personal_food_tolerance": 0,
    "personal_observation_checkins": 0,
    "personal_observation_phases": 0,
    "personal_observation_results": 0,
    "personal_observations": 0,
    "report_runs": 161,
    "supplement_intakes": 0,
    "supplement_plans": 0,
    "symptom_log": 22,
    "symptome": 3,
    "sync_state": 250,
    "tagebuch": 71,
    "vitalzeichen": 0
  }
}
