Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
52006683
Unverified
Commit
52006683
authored
Mar 14, 2024
by
Yeuoly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: null conversation id
parent
de184051
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
563cf8bf777b_enable_tool_file_without_conversation_id.py
.../563cf8bf777b_enable_tool_file_without_conversation_id.py
+36
-0
No files found.
api/migrations/versions/563cf8bf777b_enable_tool_file_without_conversation_id.py
0 → 100644
View file @
52006683
"""enable tool file without conversation id
Revision ID: 563cf8bf777b
Revises: b5429b71023c
Create Date: 2024-03-14 04:54:56.679506
"""
from
alembic
import
op
import
sqlalchemy
as
sa
from
sqlalchemy.dialects
import
postgresql
# revision identifiers, used by Alembic.
revision
=
'563cf8bf777b'
down_revision
=
'b5429b71023c'
branch_labels
=
None
depends_on
=
None
def
upgrade
():
# ### commands auto generated by Alembic - please adjust! ###
with
op
.
batch_alter_table
(
'tool_files'
,
schema
=
None
)
as
batch_op
:
batch_op
.
alter_column
(
'conversation_id'
,
existing_type
=
postgresql
.
UUID
(),
nullable
=
True
)
# ### end Alembic commands ###
def
downgrade
():
# ### commands auto generated by Alembic - please adjust! ###
with
op
.
batch_alter_table
(
'tool_files'
,
schema
=
None
)
as
batch_op
:
batch_op
.
alter_column
(
'conversation_id'
,
existing_type
=
postgresql
.
UUID
(),
nullable
=
False
)
# ### end Alembic commands ###
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment