Add a name to each OFXAccount

So that users can identify their accounts with their own meaningful
names
This commit is contained in:
Eli Ribble 2016-06-21 07:27:29 -06:00
parent d17c592908
commit 91f89d2cbd
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,24 @@
"""add ofxaccount t name
Revision ID: d68c4fbb811f
Revises: 6b5382ac7616
Create Date: 2016-06-21 07:27:00.754391
"""
# revision identifiers, used by Alembic.
revision = 'd68c4fbb811f'
down_revision = '6b5382ac7616'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
def upgrade():
op.add_column('ofxaccount', sa.Column('name', sa.String(length=255), nullable=False))
def downgrade():
op.drop_column('ofxaccount', 'name')

View File

@ -46,6 +46,7 @@ OFXSource = Table('ofxsource', metadata,
OFXAccount = Table('ofxaccount', metadata,
Column('uuid', UUID(as_uuid=True), primary_key=True),
Column('name', String(255), nullable=False), # My checking account
Column('user_id', String(255), nullable=False), # The user ID for the bank
Column('password', String(255), nullable=False), # The encrypted password for the account
Column('type', String(255), nullable=False), # The account type, like 'checking'