Add GB proxy support (#677)

This commit is contained in:
Kerem Yilmaz
2024-08-06 08:15:49 -07:00
committed by GitHub
parent 76ae23c84c
commit 5bb8b3109e
2 changed files with 27 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
"""Add GB proxy
Revision ID: 8f237f00faeb
Revises: c5ed5a3a14eb
Create Date: 2024-08-06 15:15:15.369986+00:00
"""
from typing import Sequence, Union
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision: str = '8f237f00faeb'
down_revision: Union[str, None] = 'c5ed5a3a14eb'
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None
def upgrade() -> None:
op.execute("ALTER TYPE proxylocation ADD VALUE 'RESIDENTIAL_GB'")
def downgrade() -> None:
pass

View File

@@ -18,6 +18,7 @@ class ProxyLocation(StrEnum):
RESIDENTIAL = "RESIDENTIAL"
RESIDENTIAL_ES = "RESIDENTIAL_ES"
RESIDENTIAL_IE = "RESIDENTIAL_IE"
RESIDENTIAL_GB = "RESIDENTIAL_GB"
NONE = "NONE"