Skip to content
Snippets Groups Projects
Commit e7c8f2a0 authored by Karel van Klink's avatar Karel van Klink :smiley_cat: Committed by Neda Moeini
Browse files

remove modify_note migrations from history

parent c381e721
No related branches found
No related tags found
1 merge request!139Feature/add validation workflows
"""Add modify_note workflow to all products.
Revision ID: 75c63ad44cbb
Revises: 6c986f219e3f
Create Date: 2024-01-10 17:19:25.190165
"""
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = '75c63ad44cbb'
down_revision = '6c986f219e3f'
branch_labels = None
depends_on = None
from orchestrator.migrations.helpers import add_products_to_workflow_by_product_tag, remove_products_from_workflow_by_product_tag
new_workflows = ["SITE", "RTR", "IPTRUNK"]
def upgrade() -> None:
conn = op.get_bind()
for product_tag in new_workflows:
add_products_to_workflow_by_product_tag(conn, "modify_note", product_tag)
def downgrade() -> None:
conn = op.get_bind()
for product_tag in new_workflows:
remove_products_from_workflow_by_product_tag(conn, "modify_note", product_tag)
"""Add IP Trunk validation workflow.
Revision ID: a1a69e7554c4
Revises: 75c63ad44cbb
Revises: 6c986f219e3f
Create Date: 2024-01-11 15:57:57.534785
"""
......@@ -10,7 +10,7 @@ from alembic import op
# revision identifiers, used by Alembic.
revision = 'a1a69e7554c4'
down_revision = '75c63ad44cbb'
down_revision = '6c986f219e3f'
branch_labels = None
depends_on = None
......
"""Add modify note workflow to new products.
Revision ID: b5dfbc1ec7b2
Revises: a1a69e7554c4
Create Date: 2024-04-22 10:22:00.763401
"""
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = 'b5dfbc1ec7b2'
down_revision = 'a1a69e7554c4'
branch_labels = None
depends_on = None
from orchestrator.migrations.helpers import add_products_to_workflow_by_product_tag, \
remove_products_from_workflow_by_product_tag
new_workflows = ["Super_POP_SWITCH", "OFFICE_ROUTER", "SWITCH", "LSI", "POP_VLAN", "IMP_IP_TRUNK", "IMP_RTR", "IMP_SITE", "IMP_SPOP_SWITCH", "IMP_OFFICE_RTR", "OPENGEAR"]
def upgrade() -> None:
conn = op.get_bind()
for product_tag in new_workflows:
add_products_to_workflow_by_product_tag(conn, "modify_note", product_tag)
def downgrade() -> None:
conn = op.get_bind()
for product_tag in new_workflows:
remove_products_from_workflow_by_product_tag(conn, "modify_note", product_tag)
"""Add task_validate_geant_products.
Revision ID: 31fd1ae8d5bb
Revises: 3323bcb934e7
Revises: a1a69e7554c4
Create Date: 2024-07-15 15:34:00.00000
"""
......@@ -13,7 +13,7 @@ from alembic import op
# revision identifiers, used by Alembic.
revision = "31fd1ae8d5bb"
down_revision = "b5dfbc1ec7b2"
down_revision = "a1a69e7554c4"
branch_labels = None
depends_on = None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment