Follow these steps:
- Upgrade pip package:
pip install -U "prefect>=2.0b"
- Restart Orion:
prefect start orion
Under the hood when the Orion API server is restarted, it automatically runs database migrations for you on app startup as part of lifecycle management. This is valid for both ephemeral SQLite and persistent Postgres databases.
You can set
If something didn’t work as expected, you can run DB migration manually using
prefect orion database upgrade.