Skip to content
Snippets Groups Projects
Verified Commit ab2542f9 authored by Karel van Klink's avatar Karel van Klink :smiley_cat:
Browse files

Update IAS flavor labels

parent 0a30ba67
Branches
Tags
1 merge request!416Update IAS flavor labels
Pipeline #93867 passed
"""Update IAS flavor names.
Revision ID: 465008ed496e
Revises: a3177c5f9641
Create Date: 2025-05-02 13:54:40.520906
"""
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = '465008ed496e'
down_revision = 'a3177c5f9641'
branch_labels = None
depends_on = None
def upgrade() -> None:
conn = op.get_bind()
conn.execute(sa.text("""
UPDATE subscription_instance_values
SET value = 'IASPS_OPTOUT'
WHERE value = 'IASPS Opt-OUT'
"""))
conn.execute(sa.text("""
UPDATE subscription_instance_values
SET value = 'IASPS_OPTIN'
WHERE value = 'IASPS Opt-IN'
"""))
def downgrade() -> None:
conn = op.get_bind()
conn.execute(sa.text("""
UPDATE subscription_instance_values
SET value = 'IASPS Opt-IN'
WHERE value = 'IASPS_OPTIN'
"""))
conn.execute(sa.text("""
UPDATE subscription_instance_values
SET value = 'IASPS Opt-OUT'
WHERE value = 'IASPS_OPTOUT'
"""))
......@@ -14,8 +14,8 @@ from gso.products.product_blocks.l3_core_service import (
class IASFlavor(strEnum):
"""IAS flavors."""
IAS_PS_OPT_OUT = "IASPS Opt-OUT"
IAS_PS_OPT_IN = "IASPS Opt-IN"
IAS_PS_OPT_OUT = "IASPS_OPTOUT"
IAS_PS_OPT_IN = "IASPS_OPTIN"
IASGWS = "IASGWS"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment