Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions api/alembic/versions/5bb5281de909_make_workspace_id_required.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,6 @@ def upgrade() -> None:
"notes", "workspace_id", existing_type=sa.VARCHAR(length=36), nullable=False
)

# 将 storage_backends 表的 workspace_id 设置为必填字段
op.alter_column(
"storage_backends",
"workspace_id",
existing_type=sa.VARCHAR(length=36),
nullable=False,
)

# 将 workspace_user_association 表的 created_at 改为可选字段
op.alter_column(
"workspace_user_association",
Expand Down Expand Up @@ -88,14 +80,6 @@ def downgrade() -> None:
nullable=False,
)

# 恢复 storage_backends 表的 workspace_id 为可选字段
op.alter_column(
"storage_backends",
"workspace_id",
existing_type=sa.VARCHAR(length=36),
nullable=True,
)

# 恢复 notes 表的 workspace_id 为可选字段
op.alter_column(
"notes", "workspace_id", existing_type=sa.VARCHAR(length=36), nullable=True
Expand Down