Skip to content

Commit

Permalink
fix: hacky alembic fix
Browse files Browse the repository at this point in the history
  • Loading branch information
seelengxd committed Oct 31, 2024
1 parent 06b81fb commit 8ecc937
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion backend/alembic/versions/4f9ec96fc98e_add_unverified_tier.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
import sqlalchemy as sa
import sqlalchemy.orm as orm
from alembic_postgresql_enum import TableReference
from src.limits.models import Tier
from src.common.base import Base
from src.limits.models import TierNames

# revision identifiers, used by Alembic.
revision: str = "4f9ec96fc98e"
Expand All @@ -21,6 +22,15 @@
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(
Expand Down

0 comments on commit 8ecc937

Please sign in to comment.