chore: require corpus schema_version = 3

Tracks the cog_pipeline corpus bump from 2 → 3 (year=2012 partition is
now modern-only; v2 shipped a broken mixed-source partition). session
open aborts with a clear message if a reader hits a legacy v2 corpus.
This commit is contained in:
2026-04-23 14:35:55 -04:00
parent 2b36f860f9
commit cea7a241c5
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -32,5 +32,5 @@ Suggests:
Config/testthat/edition: 3 Config/testthat/edition: 3
VignetteBuilder: knitr VignetteBuilder: knitr
RoxygenNote: 7.3.3 RoxygenNote: 7.3.3
MinCorpusSchema: 2 MinCorpusSchema: 3
MaxCorpusSchema: 2 MaxCorpusSchema: 3
+1 -1
View File
@@ -11,7 +11,7 @@ cog_open <- function(url = .resolve_url(),
DBI::dbExecute(con, "INSTALL httpfs; LOAD httpfs;") DBI::dbExecute(con, "INSTALL httpfs; LOAD httpfs;")
manifest <- .fetch_or_cache_manifest(url, cache_dir) manifest <- .fetch_or_cache_manifest(url, cache_dir)
.validate_schema(manifest, expected_version = 2L) .validate_schema(manifest, expected_version = 3L)
.validate_scope(manifest) .validate_scope(manifest)
.register_views(con, url, manifest) .register_views(con, url, manifest)