-
Notifications
You must be signed in to change notification settings - Fork 537
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Shuchang Zheng <wintonzheng0325@gmail.com>
- Loading branch information
1 parent
50026f3
commit 72d25cd
Showing
9 changed files
with
364 additions
and
19 deletions.
There are no files selected for viewing
49 changes: 49 additions & 0 deletions
49
alembic/versions/2024_05_16_1729-04bf06540db6_add_proxy_location_and_webhook_callback_.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
"""add proxy_location and webhook_callback_url to workflows table | ||
Revision ID: 04bf06540db6 | ||
Revises: baec12642d77 | ||
Create Date: 2024-05-16 17:29:55.083124+00:00 | ||
""" | ||
from typing import Sequence, Union | ||
|
||
import sqlalchemy as sa | ||
|
||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision: str = "04bf06540db6" | ||
down_revision: Union[str, None] = "baec12642d77" | ||
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( | ||
"workflows", | ||
sa.Column( | ||
"proxy_location", | ||
sa.Enum( | ||
"US_CA", | ||
"US_NY", | ||
"US_TX", | ||
"US_FL", | ||
"US_WA", | ||
"RESIDENTIAL", | ||
"RESIDENTIAL_ES", | ||
"NONE", | ||
name="proxylocation", | ||
), | ||
nullable=True, | ||
), | ||
) | ||
op.add_column("workflows", sa.Column("webhook_callback_url", sa.String(), nullable=True)) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column("workflows", "webhook_callback_url") | ||
op.drop_column("workflows", "proxy_location") | ||
# ### end Alembic commands ### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.