Upgrading from 1.x¶
What changed¶
- On CDM entries,
schema_nameis nowcdm_schema. - The
cdm_schemadefault is nowNone, which uses the connection's default schema or search path. - SQLite rejects explicit schemas. Leave both
schema_nameandcdm_schemaunset. - The schema registry needs a baseline for each existing populated database before it can track schema changes.
Manual upgrade¶
- Back up your
config.toml. - Update each
[databases.*]entry withkind = "cdm": - PostgreSQL: rename
schema_nametocdm_schema. If the 1.x entry had no schema field because it used the implicit"omop"schema, addcdm_schema = "omop". - SQLite: delete
schema_nameand leavecdm_schemaunset. - Confirm that the config loads by running the existing read-only command
omop-config show. - For each existing populated database, inspect its schemas and confirm the configured schemas are correct. Then establish its registry baseline once:
omop-config acknowledge-schema-migration --database <name> --reason "upgrade to 2.0"
omop-emb embedding stores¶
Existing embedding stores do not have a manual upgrade path yet. With the new omop-emb release, they raise LegacyRegistryError until the migration script is available. If you need to keep using an existing embedding store, stay on your current omop-emb release and its dependencies until then.
Migration script (coming in a later release)¶
The script is currently a placeholder and does not change files. When the real script ships, run it with:
uv run https://raw.githubusercontent.com/AustralianCancerDataNetwork/oa-configurator/main/migrations/to_v2.py
Track its availability here.