Commit 019a25e
authored
[BUG] Catch panic when applied migration exceeds source migrations in sqlite (#5738)
## Description of changes
_Summarize the changes made by this PR._
- Improvements & Bug fixes
- A panic occurs when applied migrations exceeds source migrations on
sysdb. This can occur when a user upgrades to a version with a new sysdb
migration, then downgrades to a prior version. This PR catches this
panic and assumes that since applied migrations exceeds source
migrations, the migrations run a.) include up to source migrations and
b.) are backwards compatible
- New functionality
- ...
## Test plan
_How are these changes tested?_
- [ ] Tests pass locally with `pytest` for python, `yarn test` for js,
`cargo test` for rust
## Migration plan
_Are there any migrations, or any forwards/backwards compatibility
changes needed in order to make sure this change deploys reliably?_
## Observability plan
_What is the plan to instrument and monitor this change?_
## Documentation Changes
_Are all docstrings for user-facing APIs updated if required? Do we need
to make documentation changes in the [docs
section](https://github.com/chroma-core/chroma/tree/main/docs/docs.trychroma.com)?_1 parent 25f623b commit 019a25e
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
157 | 161 | | |
158 | 162 | | |
159 | 163 | | |
| |||
0 commit comments