mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
(DB fix) don't run apply_db_fixes on startup (#6604)
* fix don't apply_db_fixes on startup * fix remove unused import
This commit is contained in:
parent
305821902d
commit
0fe8cde7c7
3 changed files with 9 additions and 4 deletions
|
@ -1,7 +1,14 @@
|
|||
from prisma import Prisma
|
||||
from litellm._logging import verbose_logger
|
||||
|
||||
|
||||
async def apply_db_fixes(db: Prisma):
|
||||
"""
|
||||
Do Not Run this in production, only use it as a one-time fix
|
||||
"""
|
||||
verbose_logger.warning(
|
||||
"DO NOT run this in Production....Running update_unassigned_teams"
|
||||
)
|
||||
try:
|
||||
sql_query = """
|
||||
UPDATE "LiteLLM_SpendLogs"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue