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
baf536eb
Unverified
Commit
baf536eb
authored
Mar 14, 2024
by
Yeuoly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: linter
parent
52006683
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
563cf8bf777b_enable_tool_file_without_conversation_id.py
.../563cf8bf777b_enable_tool_file_without_conversation_id.py
+0
-1
tools.py
api/models/tools.py
+1
-1
No files found.
api/migrations/versions/563cf8bf777b_enable_tool_file_without_conversation_id.py
View file @
baf536eb
...
...
@@ -6,7 +6,6 @@ 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.
...
...
api/models/tools.py
View file @
baf536eb
...
...
@@ -218,7 +218,7 @@ class ToolFile(db.Model):
# tenant id
tenant_id
=
db
.
Column
(
UUID
,
nullable
=
False
)
# conversation id
conversation_id
=
db
.
Column
(
UUID
,
nullable
=
Fals
e
)
conversation_id
=
db
.
Column
(
UUID
,
nullable
=
Tru
e
)
# file key
file_key
=
db
.
Column
(
db
.
String
(
255
),
nullable
=
False
)
# mime type
...
...
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