Repository navigation
Add the 1.x to 2.0 migration script - #45
Merged
Merged
Conversation
# Conflicts: # migrations/to_v2.py
gkennos
self-requested a review
November 16, 2026 23:04
gkennos
requested changes
Nov 16, 2026
gkennos
approved these changes
Nov 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replaces the
migrations/to_v2.pyplaceholder with the real script. It upgrades a 1.x stack to 2.0 without touching data. It is a dry run by default and--applymakes the changes.Script
schema_namebecomescdm_schemaon PostgreSQL ("omop"if absent) and is removed on SQLiteStackConfigbefore writing--rename OLD=NEWrenames[databases.*]entries, their vector store references and their registry rowsconnection_keylayout is reconciled and rebuiltmodel_registryinto the 2.0 registrystorage_identifieris unchanged and provider names are lowercasedmodel_registry_legacy_v1, not droppedprovider_type--applybacks up the config and affected SQLite files firstDocs and messages
docs/upgrading-from-1.x.mdschema_nameerrorTesting