Skip to content

Commit

Permalink
persons.id is actually an integer, so this foreign key must match.
Browse files Browse the repository at this point in the history
sqlite doesn't actually care if they're different types, but postgres
really complained at me.
  • Loading branch information
ralphbean committed Jun 24, 2013
1 parent 3634d46 commit 99088b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tahrir_api/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class Invitation(DeclarativeBase):
created_on = Column(DateTime, nullable=False)
expires_on = Column(DateTime, nullable=False)
badge_id = Column(Unicode(128), ForeignKey('badges.id'), nullable=False)
created_by = Column(Unicode(128), ForeignKey('persons.id'),
created_by = Column(Integer, ForeignKey('persons.id'),
nullable=False)

@property
Expand Down

0 comments on commit 99088b5

Please sign in to comment.