-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(media) : increase the
t_medias.source
varchar size + fix `Taxr…
…ef.synonyms` relationship (#595) * feat(media, source) : add alembic revision that increase the `t_medias.source` varchar size * fix test backend
- Loading branch information
1 parent
e47fcd4
commit ab680d7
Showing
4 changed files
with
47 additions
and
2 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
apptax/migrations/versions/2c68a907f74c_increase_t_medias_source_size.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,33 @@ | ||
"""increase t_medias.source size | ||
Revision ID: 2c68a907f74c | ||
Revises: 3c4762751898 | ||
Create Date: 2024-12-19 10:31:05.778720 | ||
""" | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = "2c68a907f74c" | ||
down_revision = "3c4762751898" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
op.alter_column( | ||
"t_medias", "source", type_=sa.Unicode(), existing_nullable=True, schema="taxonomie" | ||
) | ||
|
||
|
||
def downgrade(): | ||
op.alter_column( | ||
"t_medias", | ||
"source", | ||
type_=sa.VARCHAR(length=25), | ||
existing_nullable=True, | ||
schema="taxonomie", | ||
) |
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
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
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