private void checkManagerVersion(OpenMode openMode) throws IOException, VersionException {

		if (openMode == OpenMode.CREATE) {
			return;
		}

		// Check data map for overall manager version for compatibility.
		DBStringMapAdapter dataMap = getDataMap(openMode == OpenMode.UPGRADE);
		if (dataMap != null) {
			// verify that we are compatible with stored data
			int dbVersion = dataMap.getInt(DTM_DB_VERSION_KEY, 1);
			if (dbVersion > DB_VERSION) {
				throw new VersionException(false);
			}
			if (dbVersion < DB_VERSION && openMode == OpenMode.UPDATE) {
				// Force upgrade if open for update
				throw new VersionException(true);
			}
		}
		else if (openMode == OpenMode.UPDATE) {
			// missing data map
			throw new VersionException(true);
		}
	}
Check data map for overall manager version for compatibility.
@throws VersionException if database is a newer unsupported version
@throws IOException if an IO error occurs
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/data/DataTypeManagerDB.java