When opening a project file Tropy will run PRAGMA integrity_check and also PRAGMA foreign_key_check on the project. This should be identical to running the command form the command line, though there can be differences because the version of SQLite used by Tropy could be different from the one you’re using. We usually update SQLite to the latest version when new release comes out.