Skip to content

Commit

Permalink
feat(media, source) : add alembic revision that increase the `t_media…
Browse files Browse the repository at this point in the history
…s.source` varchar size
  • Loading branch information
jacquesfize committed Dec 19, 2024
1 parent e47fcd4 commit 4cf2acc
Showing 1 changed file with 28 additions and 0 deletions.
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')

0 comments on commit 4cf2acc

Please sign in to comment.