Skip to content

Commit

Permalink
[FIX] account: Fix primary key and col ordering
Browse files Browse the repository at this point in the history
* Add primary key to pat_id
* Reorder Pks to match table definition order
  • Loading branch information
lasley committed Sep 14, 2016
1 parent 895a50d commit ff2ef6e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions carepoint/models/cph/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ class Account(Carepoint.BASE):
__tablename__ = 'cp_acct'
__dbname__ = 'cph'

ID = Column(
pat_id = Column(
Integer,
ForeignKey('cppat.pat_id'),
primary_key=True,
autoincrement=False,
)
pat_id = Column(
ID = Column(
Integer,
ForeignKey('cppat.pat_id'),
primary_key=True,
)
acct_type_cn = Column(Integer)
resp_pty_yn = Column(Integer)
Expand Down

0 comments on commit ff2ef6e

Please sign in to comment.