Skip to content
Snippets Groups Projects
Commit 34b63501 authored by Neda Moeini's avatar Neda Moeini
Browse files

Added a migration to update the description of modify_isis_metric workflow.

parent 8bdd6910
No related branches found
No related tags found
1 merge request!223Added a migration to update the description of modify_isis_metric workflow.
Pipeline #87267 failed
......@@ -5,14 +5,13 @@ Revises:
Create Date: 2024-04-02 10:21:08.539591
"""
from alembic import op
from orchestrator.migrations.helpers import create_workflow, delete_workflow
# revision identifiers, used by Alembic.
revision = '1ec810b289c0'
down_revision = '32cad119b7c4'
branch_labels = None
depends_on = '048219045729' # in this revision, SURF has added a new columns to the workflow table like delted_at, so we need to add a dependency on the revision that added the columns to the workflow table.
depends_on = '048219045729'
# in this revision, SURF has added a new columns to the workflow table like deleted_at, so we need to add a dependency
# on the revision that added the columns to the workflow table.
def upgrade() -> None:
......
"""Add upstream migrations as a dependency.
Revision ID: fvd7mfcfbs1q
Revises:
Create Date: 2024-06-19 11:17:08.539591
"""
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = 'fvd7mfcfbs1q'
down_revision = '1ec810b289c0'
branch_labels = None
depends_on = None
def upgrade() -> None:
conn = op.get_bind()
conn.execute(
sa.text("""UPDATE workflows SET description = 'Modify ISIS metric' WHERE name = 'modify_isis_metric'""")
)
def downgrade() -> None:
pass
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