Skip to content
This repository has been archived by the owner on Sep 17, 2021. It is now read-only.

Commit

Permalink
Removing default value for itemrevision.ephemeral_date
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Kelley committed May 16, 2016
1 parent 08f5b97 commit ae19c16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion security_monkey/datastore.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ class ItemRevision(db.Model):
active = Column(Boolean())
config = deferred(Column(JSON))
date_created = Column(DateTime(), default=datetime.datetime.utcnow, nullable=False, index=True)
date_last_ephemeral_change = Column(DateTime(), default=datetime.datetime.utcnow, nullable=True, index=True)
date_last_ephemeral_change = Column(DateTime(), nullable=True, index=True)
item_id = Column(Integer, ForeignKey("item.id"), nullable=False)
comments = relationship("ItemRevisionComment", backref="revision", cascade="all, delete, delete-orphan", order_by="ItemRevisionComment.date_created")

Expand Down

0 comments on commit ae19c16

Please sign in to comment.