Read data / ATH documentation
ath check
Validate the record and its sample files.
Usage
$ath checkArguments
What it does
Checks SQLite integrity, schema versions, foreign keys, domain rules, record relationships, revision chains, session ordering and attachments. An error means the database breaks a rule of the format; a warning means something is worth knowing but the database is still valid. It reports problems without repairing or modifying the database.
A database created by v1.0.0 fails with "database metadata schema version is 1, expected 2" until you run ath migrate.
Examples
Use --validate-export to also build and validate a temporary complete JSON package. Validation errors return exit code 1.
$ath check --validate-export$ath check --json