Skip to content

Commit

Permalink
fix: db migration for search_imdbid
Browse files Browse the repository at this point in the history
  • Loading branch information
WangEdward authored Feb 24, 2024
1 parent b8553e2 commit a5b4221
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions database/versions/127a25fdf0e8_1_0_13.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
"""1.0.13
Revision ID: 127a25fdf0e8
Revises: d71e624f0208
Create Date: 2024-02-24 03:11:32.005540
"""

import contextlib
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '127a25fdf0e8'
down_revision = 'd71e624f0208'
branch_labels = None
depends_on = None


def upgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
with contextlib.suppress(Exception):
with op.batch_alter_table("subscribe") as batch_op:
batch_op.add_column(sa.Column('search_imdbid', sa.Integer, nullable=True))
# ### end Alembic commands ###


def downgrade() -> None:
pass

0 comments on commit a5b4221

Please sign in to comment.