Skip to content

Commit

Permalink
17243 update mhr qualified supplier product code descriptions (bcgov#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ochiu authored Aug 15, 2023
1 parent 72deeeb commit 4533ee8
Showing 1 changed file with 42 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
"""17243_mhr_qs_product_code_update
Revision ID: 98bee9969323
Revises: 628b52a95bad
Create Date: 2023-08-15 08:38:16.786130
"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '98bee9969323'
down_revision = '628b52a95bad'
branch_labels = None
depends_on = None


def upgrade():
op.execute("UPDATE public.product_codes "
"SET description='Manufactured Home Registry – Lawyers and Notaries'"
"WHERE code='MHR_QSLN'")
op.execute("UPDATE public.product_codes "
"SET description='Manufactured Home Registry – Manufacturers'"
"WHERE code='MHR_QSHM'")
op.execute("UPDATE public.product_codes "
"SET description='Manufactured Home Registry – Home Dealers'"
"WHERE code='MHR_QSHD'")


def downgrade():
op.execute("UPDATE public.product_codes "
"SET description='Qualified Supplier - Lawyers and Notaries'"
"WHERE code='MHR_QSLN'")
op.execute("UPDATE public.product_codes "
"SET description='Qualified Supplier - Home Manufacturers'"
"WHERE code='MHR_QSHM'")
op.execute("UPDATE public.product_codes "
"SET description='Qualified Supplier - Home Dealers'"
"WHERE code='MHR_QSHD'")


0 comments on commit 4533ee8

Please sign in to comment.