feat!: require corpus schema_version 4 (Phase P canonical ids)

BREAKING CHANGE: canonical_govid is now uniformly 12 characters across
every vintage; corpora built against schema_version 3 are rejected.
Bumps MinCorpusSchema/MaxCorpusSchema to 4 and expected_version in
cog_open(). canonical_fips_xwalk grows to the 14-column Phase P master
schema (adds legacy_govs_id, census_geoid, id_source; confidence is
renamed to pop_confidence); .empty_xwalk_tibble() is rewritten to match.
This commit is contained in:
2026-07-11 09:31:33 -04:00
parent 874347242b
commit e635a1fc9e
4 changed files with 27 additions and 6 deletions
+2 -2
View File
@@ -31,5 +31,5 @@ Suggests:
Config/testthat/edition: 3
VignetteBuilder: knitr
RoxygenNote: 7.3.3
MinCorpusSchema: 3
MaxCorpusSchema: 3
MinCorpusSchema: 4
MaxCorpusSchema: 4