From fe4836fb68a12fbddd1b407874ef0005363fc18f Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Wed, 20 Jul 2016 15:24:28 -0600 Subject: [PATCH] Add URL for OFX source We need this to know where we are communicating with the API --- .../versions/a5eaf1296414_ofxsource_url.py | 24 +++++++++++++++++++ vanth/tables.py | 1 + 2 files changed, 25 insertions(+) create mode 100644 alembic/versions/a5eaf1296414_ofxsource_url.py diff --git a/alembic/versions/a5eaf1296414_ofxsource_url.py b/alembic/versions/a5eaf1296414_ofxsource_url.py new file mode 100644 index 0000000..b3656c7 --- /dev/null +++ b/alembic/versions/a5eaf1296414_ofxsource_url.py @@ -0,0 +1,24 @@ +"""ofxsource_url + +Revision ID: a5eaf1296414 +Revises: eac3a08698a7 +Create Date: 2016-07-20 15:23:45.880556 + +""" + +# revision identifiers, used by Alembic. +revision = 'a5eaf1296414' +down_revision = 'eac3a08698a7' +branch_labels = None +depends_on = None + +from alembic import op +import sqlalchemy as sa +from sqlalchemy.dialects import postgresql + +def upgrade(): + op.add_column('ofxsource', sa.Column('url', sa.String(length=4096), nullable=False)) + + +def downgrade(): + op.drop_column('ofxsource', 'url') diff --git a/vanth/tables.py b/vanth/tables.py index abdbfe7..41fc9c7 100644 --- a/vanth/tables.py +++ b/vanth/tables.py @@ -47,6 +47,7 @@ OFXSource = table('ofxsource', Column('fid', String(255), nullable=False), # The FID of the institution, such as 54324 Column('bankid', String(255), nullable=False), # The bank ID of the institution such as 324377516. # This may be a routing number + Column('url', String(4096), nullable=False), # The base URL for the ofxsource UniqueConstraint('fid', name='uq_ofxsource_fid'), )