mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
(Infra/DB) - Allow running older litellm version when out of sync with current state of DB (#8695)
* fix check migration * clean up should_update_prisma_schema * update test * db_migration_disable_update_check * Check container logs for expected message * db_migration_disable_update_check * test_check_migration_out_of_sync * test_should_update_prisma_schema * db_migration_disable_update_check * pip install aiohttp
This commit is contained in:
parent
300d7825f5
commit
55b938dd6e
7 changed files with 168 additions and 22 deletions
|
@ -607,10 +607,10 @@ def run_server( # noqa: PLR0915
|
|||
|
||||
if is_prisma_runnable:
|
||||
from litellm.proxy.db.check_migration import check_prisma_schema_diff
|
||||
from litellm.proxy.db.prisma_client import should_update_schema
|
||||
from litellm.proxy.db.prisma_client import should_update_prisma_schema
|
||||
|
||||
if (
|
||||
should_update_schema(
|
||||
should_update_prisma_schema(
|
||||
general_settings.get("disable_prisma_schema_update")
|
||||
)
|
||||
is False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue