Skip to content

Commit

Permalink
fix: lint last alembic version
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 committed Nov 23, 2023
1 parent 249c092 commit 1b0667d
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,23 @@


# revision identifiers, used by Alembic.
revision: str = '5acb37b190cc'
down_revision: Union[str, None] = '7103fb49908f'
revision: str = "5acb37b190cc"
down_revision: Union[str, None] = "7103fb49908f"
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None


def upgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('prices', sa.Column('category_tag', sa.String(), nullable=True))
op.create_index(op.f('ix_prices_category_tag'), 'prices', ['category_tag'], unique=False)
op.add_column("prices", sa.Column("category_tag", sa.String(), nullable=True))
op.create_index(
op.f("ix_prices_category_tag"), "prices", ["category_tag"], unique=False
)
# ### end Alembic commands ###


def downgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.drop_index(op.f('ix_prices_category_tag'), table_name='prices')
op.drop_column('prices', 'category_tag')
op.drop_index(op.f("ix_prices_category_tag"), table_name="prices")
op.drop_column("prices", "category_tag")
# ### end Alembic commands ###

0 comments on commit 1b0667d

Please sign in to comment.