public static function getIndexSchema() { $schema = static::getDb()->getIndexSchema(static::indexName()); if ($schema !== null) { return $schema; } else { throw new InvalidConfigException("The index does not exist: " . static::indexName()); } }