From fc32ee63e17258bfa25119c7faadcc08a9045b47 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Fri, 25 Aug 2023 16:31:24 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(alembic):=20change=20"user?= =?UTF-8?q?=5Fid"=20column=20in=20"flow"=20table=20to=20be=20nullable=20to?= =?UTF-8?q?=20handle=20existing=20data=20without=20a=20user=5Fid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../langflow/alembic/versions/d3749cf7ac7e_update_all_tables.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/langflow/alembic/versions/d3749cf7ac7e_update_all_tables.py b/src/backend/langflow/alembic/versions/d3749cf7ac7e_update_all_tables.py index e8f59089c..27664d8b7 100644 --- a/src/backend/langflow/alembic/versions/d3749cf7ac7e_update_all_tables.py +++ b/src/backend/langflow/alembic/versions/d3749cf7ac7e_update_all_tables.py @@ -37,7 +37,7 @@ def upgrade() -> None: op.drop_column("apikey", "create_at") with contextlib.suppress(sa.exc.OperationalError): op.add_column( - "flow", sa.Column("user_id", sqlmodel.sql.sqltypes.GUID(), nullable=False) + "flow", sa.Column("user_id", sqlmodel.sql.sqltypes.GUID(), nullable=True) ) op.create_index(op.f("ix_flow_user_id"), "flow", ["user_id"], unique=False) op.create_foreign_key(None, "flow", "user", ["user_id"], ["id"])