From 4fe62ac1211e68f1d9c656453bdf71d6849c3daf Mon Sep 17 00:00:00 2001 From: Rebecca Law Date: Mon, 26 Jun 2017 11:48:04 +0100 Subject: [PATCH] Add organisation values for the Enterprise Europe Network. --- migrations/versions/0101_een_logo.py | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 migrations/versions/0101_een_logo.py diff --git a/migrations/versions/0101_een_logo.py b/migrations/versions/0101_een_logo.py new file mode 100644 index 000000000..eac9aad4c --- /dev/null +++ b/migrations/versions/0101_een_logo.py @@ -0,0 +1,30 @@ +"""empty message + +Revision ID: 0101_een_logo +Revises: 0100_notification_created_by +Create Date: 2017-06-26 11:43:30.374723 + +""" + +from alembic import op + +revision = '0101_een_logo' +down_revision = '0100_notification_created_by' + + +ENTERPRISE_EUROPE_NETWORK_ID = '89ce468b-fb29-4d5d-bd3f-d468fb6f7c36' + + +def upgrade(): + op.execute("""INSERT INTO organisation VALUES ( + '{}', + '', + 'een_x2.png', + 'Enterprise Europe Network' + )""".format(ENTERPRISE_EUROPE_NETWORK_ID)) + + +def downgrade(): + op.execute(""" + DELETE FROM organisation WHERE "id" = '{}' + """.format(ENTERPRISE_EUROPE_NETWORK_ID))