db upgrade command¶
Module to upgrade DB schemes¶
Upgrade the scheme of the databases
Add the subparser that needs to be used for this command
Add version 1 if not present
- orion.core.cli.db.upgrade.ask_question(question, default=None)¶
Ask a question to the user and receive an answer.
- question: str
The question to be asked.
- default: str
The default value to use if the user enters nothing.
The answer provided by the user.
Upgrade the databases for current version
Remove user from unique indices.
This is required for migration to v0.1.6+
Make upgrades that are specific to some backends
Upgrade scheme of the documents
Update mongo specific db scheme.
Update pickledb specific db scheme.