forked from bcgov/sbc-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
17243 update mhr qualified supplier product code descriptions (bcgov#…
- Loading branch information
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
auth-api/migrations/versions/2023_08_15_98bee9969323_17243_mhr_qs_product_code_update.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,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'") | ||
|
||
|