From 11d7aec61d74bd37e79b2d27844cbd1c8acde140 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Fri, 11 Oct 2024 16:21:56 -0700 Subject: [PATCH] fix --- .../migrations/versions/1af9b942657b_migrate_tags.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/open_webui/migrations/versions/1af9b942657b_migrate_tags.py b/backend/open_webui/migrations/versions/1af9b942657b_migrate_tags.py index 1de27c633..9d79b5749 100644 --- a/backend/open_webui/migrations/versions/1af9b942657b_migrate_tags.py +++ b/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()