Timothy J. Baek 7 달 전
부모
커밋
11d7aec61d
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      backend/open_webui/migrations/versions/1af9b942657b_migrate_tags.py

+ 3 - 0
backend/open_webui/migrations/versions/1af9b942657b_migrate_tags.py

@@ -24,6 +24,9 @@ def upgrade():
     conn = op.get_bind()
     inspector = Inspector.from_engine(conn)
 
+    # Clean up potential leftover temp table from previous failures
+    conn.execute(sa.text("DROP TABLE IF EXISTS _alembic_tmp_tag"))
+
     # Check if the 'tag' table exists
     tables = inspector.get_table_names()