-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds Deployment Version to the Flow Run object (#12591)
- Loading branch information
1 parent
22f8978
commit fe07861
Showing
12 changed files
with
166 additions
and
0 deletions.
There are no files selected for viewing
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
34 changes: 34 additions & 0 deletions
34
.../versions/postgresql/2024_04_04_094418_bd6efa529f03_add_deployment_version_to_flow_run.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,34 @@ | ||
"""add_deployment_version_to_flow_run | ||
Revision ID: bd6efa529f03 | ||
Revises: aeea5ee6f070 | ||
Create Date: 2024-04-03 09:44:18.666688 | ||
""" | ||
import sqlalchemy as sa | ||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "bd6efa529f03" | ||
down_revision = "aeea5ee6f070" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
op.add_column( | ||
"flow_run", sa.Column("deployment_version", sa.String(), nullable=True) | ||
) | ||
op.create_index( | ||
op.f("ix_flow_run__deployment_version"), | ||
"flow_run", | ||
["deployment_version"], | ||
unique=False, | ||
) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
op.drop_index(op.f("ix_flow_run__deployment_version"), table_name="flow_run") | ||
op.drop_column("flow_run", "deployment_version") | ||
# ### end Alembic commands ### |
32 changes: 32 additions & 0 deletions
32
...ions/versions/sqlite/2024_04_04_114538_8644a9595a08_add_deployment_version_to_flow_run.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,32 @@ | ||
"""add_deployment_version_to_flow_run | ||
Revision ID: 8644a9595a08 | ||
Revises: 07ed05dfd4ec | ||
Create Date: 2024-04-02 11:45:38.210743 | ||
""" | ||
import sqlalchemy as sa | ||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "8644a9595a08" | ||
down_revision = "07ed05dfd4ec" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
op.add_column( | ||
"flow_run", sa.Column("deployment_version", sa.String(), nullable=True) | ||
) | ||
op.create_index( | ||
op.f("ix_flow_run__deployment_version"), | ||
"flow_run", | ||
["deployment_version"], | ||
unique=False, | ||
) | ||
|
||
|
||
def downgrade(): | ||
op.drop_index(op.f("ix_flow_run__deployment_version"), table_name="flow_run") | ||
op.drop_column("flow_run", "deployment_version") |
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