# Updated via Autotest Editor - 2026-05-25T21:52:12.006Z
# Source of truth: this YAML file

id: core-upgrade-check-schema_upgrade_and_data_integrity_check
module: core
group: core-upgrade
title: Verify database schema is correctly upgraded and all data maintains integrity
description: Verify database schema is correctly upgraded and all data maintains integrity
priority: Medium
tags: []
references: []
dependencies:
  - label: Admin Portal
    value: https://pbx.local:4443 (configure via $BASE_URL)
  - label: Repository URL
    value: ${BASE_URL}/downloads or $REPO_URL
  - label: Protocol
    value: HTTPS (admin portal) + optional SSH/CLI
  - label: Credentials
    value: Admin user with sufficient privileges (portal + SSH where needed)
  - label: Test Data
    value: Clean test tenant or lab PBX instance (recommended isolated environment)
preconditions: []
postconditions: []
steps:
  - action: Open admin portal or repository URL in browser context
    expected: ''
  - action: Prepare clean or previous-version VM/image
    expected: ''
  - action: Perform installation or upgrade procedure
    expected: ''
  - action: Post-install verification via portal + external tools
    expected: ''
automation_status: manual
file: tests/core/upgrade.spec.ts
custom_fields:
  original_action: check
  manualReason: Requires direct database access (psql/mysql) and schema comparison tooling
automatable:
  - Most UI-driven configuration and verification steps via Playwright
notYet:
  - Requires direct database access (psql/mysql) and schema comparison tooling
