From 5668d6b1028c6bb6c4417ff18f601f9f1a0d2d13 Mon Sep 17 00:00:00 2001 From: Jared Knowles Date: Tue, 4 Aug 2026 11:22:28 -0400 Subject: [PATCH] fix: accept corpus schema_version 7 (#80) --- R/manifest.R | 2 +- R/session.R | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/R/manifest.R b/R/manifest.R index 3b587c1..1161e70 100644 --- a/R/manifest.R +++ b/R/manifest.R @@ -138,7 +138,7 @@ #' year, matching canonical_fips_xwalk) rather than as-of-year; as-of-year #' moved to the *_asof columns. This package's own geography always came from #' the xwalk (already present-based), so behaviour is unchanged. -.validate_schema <- function(manifest, supported = c(4L, 5L, 6L)) { +.validate_schema <- function(manifest, supported = c(4L, 5L, 6L, 7L)) { if (!manifest$schema_version %in% supported) { cli::cli_abort(c( "Corpus schema version mismatch.", diff --git a/R/session.R b/R/session.R index ef1c28c..468e980 100644 --- a/R/session.R +++ b/R/session.R @@ -12,7 +12,7 @@ cog_open <- function(url = .resolve_url(), DBI::dbExecute(con, "INSTALL httpfs; LOAD httpfs;") manifest <- .fetch_or_cache_manifest(url, cache_dir) - .validate_schema(manifest, supported = c(4L, 5L, 6L)) + .validate_schema(manifest, supported = c(4L, 5L, 6L, 7L)) .validate_scope(manifest) .register_views(con, url, manifest)