forked from langgenius/dify
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat/update tools length (langgenius#7141)
- Loading branch information
1 parent
f65165c
commit 7ad99ee
Showing
2 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
api/migrations/versions/2024_08_09_0801-1787fbae959a_update_tools_original_url_length.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
"""update tools original_url length | ||
Revision ID: 1787fbae959a | ||
Revises: eeb2e349e6ac | ||
Create Date: 2024-08-09 08:01:12.817620 | ||
""" | ||
import sqlalchemy as sa | ||
from alembic import op | ||
|
||
import models as models | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '1787fbae959a' | ||
down_revision = 'eeb2e349e6ac' | ||
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('original_url', | ||
existing_type=sa.VARCHAR(length=255), | ||
type_=sa.String(length=2048), | ||
existing_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('original_url', | ||
existing_type=sa.String(length=2048), | ||
type_=sa.VARCHAR(length=255), | ||
existing_nullable=True) | ||
|
||
# ### end Alembic commands ### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters