-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove character limit of url field in link model. (#879)
- Loading branch information
1 parent
7b009d5
commit 24442c8
Showing
2 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
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
40 changes: 40 additions & 0 deletions
40
OpenOversight/migrations/versions/93fc3e074dcc_remove_link_length_cap.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,40 @@ | ||
"""Remove character limit of url field in link model. | ||
Revision ID: 93fc3e074dcc | ||
Revises: cd39b33b5360 | ||
Create Date: 2022-01-05 06:50:40.070530 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = "93fc3e074dcc" | ||
down_revision = "cd39b33b5360" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.alter_column( | ||
"links", | ||
"url", | ||
existing_type=sa.VARCHAR(length=255), | ||
type_=sa.Text(), | ||
existing_nullable=False, | ||
) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.alter_column( | ||
"links", | ||
"url", | ||
existing_type=sa.Text(), | ||
type_=sa.VARCHAR(length=255), | ||
existing_nullable=False, | ||
) | ||
# ### end Alembic commands ### |