-
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, source) : add alembic revision that increase the `t_media…
…s.source` varchar size
- Loading branch information
1 parent
e47fcd4
commit 4cf2acc
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
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,28 @@ | ||
"""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') |