Update number column on task orders table to have a unique constraint

This commit is contained in:
leigh-mil
2019-12-10 16:26:00 -05:00
parent 0556e108de
commit 85252812e0
2 changed files with 29 additions and 1 deletions

View File

@@ -39,7 +39,7 @@ class TaskOrder(Base, mixins.TimestampsMixin):
pdf_attachment_id = Column(ForeignKey("attachments.id"))
_pdf = relationship("Attachment", foreign_keys=[pdf_attachment_id])
number = Column(String) # Task Order Number
number = Column(String, unique=True,) # Task Order Number
signer_dod_id = Column(String)
signed_at = Column(DateTime)