Skip to content
This repository has been archived by the owner on Dec 4, 2019. It is now read-only.

Commit

Permalink
deployment-fix: postgres requires named enums
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-burnett committed Sep 12, 2014
1 parent 4fe2a4b commit 5010cb5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ptero_auth/implementation/models/clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class AudienceClaim(Base):
audience_claim_pk = Column(Integer, primary_key=True)
client_pk = Column(Integer, ForeignKey('confidential_client.client_pk'),
nullable=False)
value = Column(Enum('posix', 'roles'), nullable=False)
value = Column(Enum('posix', 'roles', name='claim_enum'), nullable=False)

client = relationship(ConfidentialClient, backref='audience_claims')

Expand All @@ -150,8 +150,9 @@ class EncryptionKey(Base):

kid = Column(Text, nullable=False, unique=True)
key = Column(Text, nullable=False)
alg = Column(Enum('RSA1_5'), nullable=False)
enc = Column(Enum('A128CBC-HS256'), nullable=False)
alg = Column(Enum('RSA1_5', name='encryption_alg_enum'), nullable=False)
enc = Column(Enum('A128CBC-HS256', name='encrryption_enc_enum'),
nullable=False)

@property
def as_dict(self):
Expand Down

0 comments on commit 5010cb5

Please sign in to comment.