Opened 6 years ago

Closed 6 years ago

#891 closed defect (cant-reproduce)

Two primary keys on NonceTimestamp

Reported by: Christopher Allan Webber Owned by:
Priority: major Milestone:
Component: programming Keywords:
Cc: tsyesika Parent Tickets:

Description

Not sure what's going on here:

class NonceTimestamp(Base):
    """
        A place the timestamp and nonce can be stored - this is for OAuth1
    """
    __tablename__ = "core__nonce_timestamps"

    nonce = Column(Unicode, nullable=False, primary_key=True)
    timestamp = Column(DateTime, nullable=False, primary_key=True)

but by definition they can't both be primary keys.

Subtickets

Change History (1)

comment:1 Changed 6 years ago by Christopher Allan Webber

Resolution: worksforme
Status: newclosed

Oh, it might be a composite primary key. Never mind.

Note: See TracTickets for help on using tickets.