Skip to content

Commit

Permalink
Pushing new migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
apradoada committed Dec 6, 2024
1 parent feef808 commit 2da90b8
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions migrations/versions/d066cb56e11a_.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
"""empty message
Revision ID: d066cb56e11a
Revises: f3508bc26a9b
Create Date: 2024-12-06 09:04:41.877457
"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = 'd066cb56e11a'
down_revision = 'f3508bc26a9b'
branch_labels = None
depends_on = None


def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('pet', schema=None) as batch_op:
batch_op.alter_column('name',
existing_type=sa.VARCHAR(),
nullable=True)

# ### end Alembic commands ###


def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('pet', schema=None) as batch_op:
batch_op.alter_column('name',
existing_type=sa.VARCHAR(),
nullable=False)

# ### end Alembic commands ###

0 comments on commit 2da90b8

Please sign in to comment.