VersionPress\Database\DbSchemaInfo::useSchemaForCurrentVersion PHP Method

useSchemaForCurrentVersion() private method

For example in WP < 4.4-beta1 removes the termmeta entity.
private useSchemaForCurrentVersion ( $schema ) : array
$schema
return array
    private function useSchemaForCurrentVersion($schema)
    {
        $currentDbVersion = $this->dbVersion;
        return array_filter($schema, function ($entitySchema) use($currentDbVersion) {
            if (!isset($entitySchema['since'])) {
                return true;
            }
            return $entitySchema['since'] <= $currentDbVersion;
        });
    }