From aaaf60b961cdd06dc9ef66f4ab324ece42f995f2 Mon Sep 17 00:00:00 2001 From: seeleng Date: Thu, 31 Oct 2024 15:49:41 +0800 Subject: [PATCH] Revert "fix: hacky alembic fix" This reverts commit 8ecc9376bed3460834ff35ba425f8c933f8fcf4c. --- .../versions/4f9ec96fc98e_add_unverified_tier.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/backend/alembic/versions/4f9ec96fc98e_add_unverified_tier.py b/backend/alembic/versions/4f9ec96fc98e_add_unverified_tier.py index fa8da5e2..316e4a59 100644 --- a/backend/alembic/versions/4f9ec96fc98e_add_unverified_tier.py +++ b/backend/alembic/versions/4f9ec96fc98e_add_unverified_tier.py @@ -12,8 +12,7 @@ import sqlalchemy as sa import sqlalchemy.orm as orm from alembic_postgresql_enum import TableReference -from src.common.base import Base -from src.limits.models import TierNames +from src.limits.models import Tier # revision identifiers, used by Alembic. revision: str = "4f9ec96fc98e" @@ -22,15 +21,6 @@ depends_on: Union[str, Sequence[str], None] = None -class Tier(Base): - __tablename__ = "tier" - - id: orm.Mapped[int] = orm.mapped_column(primary_key=True) - tier_name: orm.Mapped[TierNames] - label: orm.Mapped[str] - gp_question_limit: orm.Mapped[int] - - def upgrade() -> None: # ### commands auto generated by Alembic - please adjust! ### op.sync_enum_values(