From a9504258826e434172031adeaa400dbe4e02daa4 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Thu, 23 Aug 2018 13:38:56 +0100 Subject: [PATCH 1/2] Add letter logo for Pension Wise --- .../versions/0214_another_letter_org.py | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 migrations/versions/0214_another_letter_org.py diff --git a/migrations/versions/0214_another_letter_org.py b/migrations/versions/0214_another_letter_org.py new file mode 100644 index 000000000..6d067fb22 --- /dev/null +++ b/migrations/versions/0214_another_letter_org.py @@ -0,0 +1,35 @@ +"""empty message + +Revision ID: 0214_another_letter_org +Revises: 0213_brand_colour_domain_ + +""" + +# revision identifiers, used by Alembic. +revision = '0214_another_letter_org' +down_revision = '0213_brand_colour_domain_' + +from alembic import op + + +NEW_ORGANISATIONS = [ + ('510', 'Pension Wise'), +] + + +def upgrade(): + for numeric_id, name in NEW_ORGANISATIONS: + op.execute(""" + INSERT + INTO dvla_organisation + VALUES ('{}', '{}') + """.format(numeric_id, name)) + + +def downgrade(): + for numeric_id, _ in NEW_ORGANISATIONS: + op.execute(""" + DELETE + FROM dvla_organisation + WHERE id = '{}' + """.format(numeric_id)) From f80cd508acae347f838a5d2afff4187c13a0a1d1 Mon Sep 17 00:00:00 2001 From: Rebecca Law Date: Thu, 23 Aug 2018 14:43:41 +0100 Subject: [PATCH 2/2] Fix name typo --- migrations/versions/0214_another_letter_org.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrations/versions/0214_another_letter_org.py b/migrations/versions/0214_another_letter_org.py index 6d067fb22..b39fc1b73 100644 --- a/migrations/versions/0214_another_letter_org.py +++ b/migrations/versions/0214_another_letter_org.py @@ -7,7 +7,7 @@ Revises: 0213_brand_colour_domain_ # revision identifiers, used by Alembic. revision = '0214_another_letter_org' -down_revision = '0213_brand_colour_domain_' +down_revision = '0213_brand_colour_domain' from alembic import op